Update Models\ManagerModel

Remove extends from Models\Model.
This commit is contained in:
Visman 2021-03-15 22:50:27 +07:00
parent 9f72acea32
commit d5d271491d

View file

@ -10,21 +10,32 @@ declare(strict_types=1);
namespace ForkBB\Models;
use ForkBB\Models\Model;
use ForkBB\Core\Container;
class ManagerModel extends Model
class ManagerModel
{
/**
* Контейнер
* @var Container
*/
protected $c;
/**
* @var array
*/
protected $repository = [];
public function __construct(Container $container)
{
$this->c = $container;
}
public function get($key)
{
return $this->repository[$key] ?? null;
}
public function set($key, /* mixed */ $value): ManagerModel
public function set($key, /* mixed */ $value): self
{
$this->repository[$key] = $value;