PHP Класс ManaPHP\Cli\Router

Наследование: extends ManaPHP\Component, implements ManaPHP\Cli\RouterInterface
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$_actionName string
$_commandAliases array
$_controllerName string
$_guessCommand boolean

Открытые методы

Метод Описание
getActionName ( ) : string
getControllerName ( ) : string
route ( string $cmd ) : boolean
setAlias ( string $alias, string $command ) : static

Защищенные методы

Метод Описание
_getCommands ( string $controller ) : array
_getControllers ( ) : array

Описание методов

_getCommands() защищенный Метод

protected _getCommands ( string $controller ) : array
$controller string
Результат array

_getControllers() защищенный Метод

protected _getControllers ( ) : array
Результат array

getActionName() публичный Метод

public getActionName ( ) : string
Результат string

getControllerName() публичный Метод

public getControllerName ( ) : string
Результат string

route() публичный Метод

public route ( string $cmd ) : boolean
$cmd string
Результат boolean

setAlias() публичный Метод

public setAlias ( string $alias, string $command ) : static
$alias string
$command string
Результат static

Описание свойств

$_actionName защищенное свойство

protected string $_actionName
Результат string

$_commandAliases защищенное свойство

protected array $_commandAliases
Результат array

$_controllerName защищенное свойство

protected string $_controllerName
Результат string

$_guessCommand защищенное свойство

protected bool $_guessCommand
Результат boolean