chore: Добавлены аннотации к типам
This commit is contained in:
parent
48269bd424
commit
ad920f656c
14 changed files with 127 additions and 127 deletions
|
|
@ -6,10 +6,10 @@ use ctiso\View\View,
|
|||
|
||||
class Composite extends View
|
||||
{
|
||||
private $tal;
|
||||
private PHPTAL $tal;
|
||||
public $config;
|
||||
|
||||
function __construct($file)
|
||||
function __construct(string $file)
|
||||
{
|
||||
parent::__construct();
|
||||
|
||||
|
|
@ -29,17 +29,17 @@ class Composite extends View
|
|||
$this->tal->set($key, $val);
|
||||
}
|
||||
|
||||
function __set($key, $val) {
|
||||
function __set(string $key, mixed $val) {
|
||||
$this->tal->set($key, $val);
|
||||
}
|
||||
|
||||
function execute()
|
||||
function execute(): string
|
||||
{
|
||||
$this->processChild();
|
||||
return $this->tal->execute();
|
||||
}
|
||||
|
||||
function setTranslator($t) {
|
||||
function setTranslator($t): void {
|
||||
$this->tal->setTranslator($t);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue