. */ namespace SP\Repositories; use SP\Core\Context\ContextInterface; use SP\Storage\Database\Database; /** * Class Repository * * @package SP\Repositories */ abstract class Repository { protected ContextInterface $context; protected Database $db; final public function __construct(Database $database, ContextInterface $session) { $this->db = $database; $this->context = $session; if (method_exists($this, 'initialize')) { $this->initialize(); } } }