chore: Аннотации к типам
This commit is contained in:
parent
5e8958969f
commit
f964472e62
28 changed files with 140 additions and 36 deletions
|
|
@ -29,6 +29,8 @@ class Manager extends Filter
|
|||
|
||||
/**
|
||||
* Условие для аякс запросов. Тоже самое что и addConditionGet но еще проверяется является ли запрос ajax
|
||||
* @param array|true $get Ассоциативный массив ключей и значений для $_GET
|
||||
* @param Filter $layout Макет
|
||||
*/
|
||||
public function addConditionXHR($get, Filter $layout): void
|
||||
{
|
||||
|
|
@ -74,8 +76,9 @@ class Manager extends Filter
|
|||
|
||||
/**
|
||||
* Выбирает и применяет макет для страницы
|
||||
* @return mixed
|
||||
*/
|
||||
public function execute(HttpRequest $request): string
|
||||
public function execute(HttpRequest $request): mixed
|
||||
{
|
||||
foreach ($this->condition as $condition) {
|
||||
if (call_user_func($condition[0], $request)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue