chore: Аннотация типов
This commit is contained in:
parent
cf0bc435ce
commit
f07a668b30
14 changed files with 62 additions and 19 deletions
|
|
@ -24,6 +24,7 @@ class Action implements ActionInterface
|
|||
|
||||
// Параметры устанавливаются при создании контроллера
|
||||
public string $name = ''; // Имя модуля
|
||||
/** @var \ctiso\Controller\Front */
|
||||
public $front;
|
||||
|
||||
public string $modulePath = ''; // Путь к модулю
|
||||
|
|
@ -283,7 +284,7 @@ class Action implements ActionInterface
|
|||
/**
|
||||
* Генерация ссылки на действие контроллера
|
||||
* Ajax определяется автоматически mode = ajax используется для смены layout
|
||||
* @param $name
|
||||
* @param string $name
|
||||
* @param array $param
|
||||
* @return Url|null
|
||||
*
|
||||
|
|
@ -299,7 +300,7 @@ class Action implements ActionInterface
|
|||
* Добавление помошника контроллера
|
||||
* @param class-string $class
|
||||
*/
|
||||
public function addHelper($class)
|
||||
public function addHelper($class): void
|
||||
{
|
||||
$this->helpers [] = $class;
|
||||
}
|
||||
|
|
@ -323,10 +324,11 @@ class Action implements ActionInterface
|
|||
|
||||
/**
|
||||
* Загрузка файла класса
|
||||
* @deprecated
|
||||
* @deprecated Веместо его нужно использовать автозагрузку
|
||||
* @param string $path
|
||||
* @param mixed $setup
|
||||
* @param string $prefix
|
||||
* @return mixed
|
||||
*/
|
||||
public function loadClass($path, $setup = null, $prefix = '')
|
||||
{
|
||||
|
|
@ -350,6 +352,9 @@ class Action implements ActionInterface
|
|||
return $result->export();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $name
|
||||
*/
|
||||
public function setView($name): void
|
||||
{
|
||||
$this->view = $this->getView($name);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue