public function __construct() { $this->entity = $this->getEntityName(); if (is_null(self::$cache)) { self::$cache = new ShopCache(); } }