Phalcon\Cache\Backend\Database::__construct PHP Метод

__construct() публичный Метод

public __construct ( Phalcon\Cache\FrontendInterface $frontend, array $options )
$frontend Phalcon\Cache\FrontendInterface
$options array
    public function __construct(FrontendInterface $frontend, array $options)
    {
        if (!isset($options['db']) || !$options['db'] instanceof DbAdapterInterface) {
            throw new Exception('Parameter "db" is required and it must be an instance of Phalcon\\Acl\\AdapterInterface');
        }
        if (!isset($options['table']) || empty($options['table']) || !is_string($options['table'])) {
            throw new Exception("Parameter 'table' is required and it must be a non empty string");
        }
        $this->db = $options['db'];
        $this->table = $this->db->escapeIdentifier($options['table']);
        unset($options['db'], $options['table']);
        parent::__construct($frontend, $options);
    }