1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- <?php
- /**
- * This file is part of the ForkBB <https://github.com/forkbb>.
- *
- * @copyright (c) Visman <mio.visman@yandex.ru, https://github.com/MioVisman>
- * @license The MIT License (MIT)
- */
- declare(strict_types=1);
- namespace ForkBB\Models;
- use ForkBB\Core\Container;
- use ForkBB\Models\Model;
- class Method
- {
- /**
- * Контейнер
- * @var Container
- */
- protected $c;
- /**
- * Модель
- * @var Model
- */
- protected $model;
- public function __construct(Container $container)
- {
- $this->c = $container;
- }
- /**
- * Объявление модели
- */
- public function setModel(Model $model): Method
- {
- $this->model = $model;
- return $this;
- }
- }
|