MGDigital\BusQue\Redis\RedisDriver::__construct PHP Метод

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

public __construct ( MGDigital\BusQue\Redis\RedisAdapterInterface $adapter, string $namespace = '' )
$adapter MGDigital\BusQue\Redis\RedisAdapterInterface
$namespace string
    public function __construct(RedisAdapterInterface $adapter, string $namespace = '')
    {
        $this->adapter = $adapter;
        if (!preg_match('/^[a-z0-9_\\-\\.]*$/i', $namespace)) {
            throw new \InvalidArgumentException('Invalid namespace.');
        }
        $this->namespace = $namespace;
    }