chore: Аннотации к типам
This commit is contained in:
parent
e2ba6bd46e
commit
e5713e9015
28 changed files with 305 additions and 110 deletions
|
|
@ -3,6 +3,7 @@
|
|||
namespace ctiso\View;
|
||||
use ctiso\View\View,
|
||||
PHPTAL;
|
||||
use PHPTAL_TranslationService;
|
||||
|
||||
class Composite extends View
|
||||
{
|
||||
|
|
@ -39,7 +40,7 @@ class Composite extends View
|
|||
return $this->tal->execute();
|
||||
}
|
||||
|
||||
function setTranslator($t): void {
|
||||
function setTranslator(PHPTAL_TranslationService $t): void {
|
||||
$this->tal->setTranslator($t);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,10 +8,13 @@ class Top extends Composite
|
|||
{
|
||||
/**
|
||||
* Общая строка заголовка
|
||||
* @var int
|
||||
*/
|
||||
public $mid = 0;
|
||||
public $require = array();
|
||||
public $deps = array();
|
||||
/** @var array */
|
||||
public $require = [];
|
||||
/** @var array */
|
||||
public $deps = [];
|
||||
|
||||
/**
|
||||
* Заголовок страницы
|
||||
|
|
|
|||
|
|
@ -22,10 +22,14 @@ class View extends \stdClass
|
|||
|
||||
public ?string $active_module = null;
|
||||
public string $module_action;
|
||||
|
||||
/** @var string[] */
|
||||
public array $prefix;
|
||||
|
||||
/** @var string[] */
|
||||
public array $suggestions = []; //подсказки
|
||||
|
||||
/** @var string[] $alias */
|
||||
public array $alias = [];
|
||||
public $codeGenerator = null;
|
||||
public $parent_view = null;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue