<?php
namespace Shasoft\SamoyedCMG;
// Сгенерировать адреса по их имени
class UrlBuilder
{
// [/]
static public function home() : string
{
return '/';
}
// [/link/file.ico]
static public function linkFile() : string
{
return '/link/file.ico';
}
// [/link/folder]
static public function linkFolder() : string
{
return '/link/folder';
}
// [/phpScript.php]
static public function script() : string
{
return '/phpScript.php';
}
// [/show-images/$width]
static public function images(string $width) : string
{
return '/show-images/'.$width.'';
}
// [/middleware]
static public function middleware() : string
{
return '/middleware';
}
// [/middleware/link/file.ico]
static public function middlewareLinkFile() : string
{
return '/middleware/link/file.ico';
}
// [/middleware/link/folder]
static public function middlewareLinkFolder() : string
{
return '/middleware/link/folder';
}
// [/middleware/phpScript.php]
static public function middlewareScript() : string
{
return '/middleware/phpScript.php';
}
// [/middleware/show-images/$width]
static public function middlewareImages(string $width) : string
{
return '/middleware/show-images/'.$width.'';
}
// [/samoyed-cmg-demo.zip]
static public function dist() : string
{
return '/samoyed-cmg-demo.zip';
}
// [/debug]
static public function debug() : string
{
return '/debug';
}
}