private function _setStorageAdapter(string $adapterName) : void
    {
        $adapterClassName = self::STORAGE_MAP[$adapterName] ?? $adapterName;

        if (!InterfaceHelper::implementsInterface($adapterClassName, StorageInterface::class))
        {
            throw new UnknownStorageAdapterException($adapterClassName, \array_values(self::STORAGE_MAP));
        }

        $this->_storage = new $adapterClassName($this->_config);
    }
private function _setStorageAdapter(string $adapterName) : void
    {
        $adapterClassName = self::STORAGE_MAP[$adapterName] ?? $adapterName;

        if (!InterfaceHelper::implementsInterface($adapterClassName, StorageInterface::class))
        {
            throw new UnknownStorageAdapterException($adapterClassName, \array_values(self::STORAGE_MAP));
        }

        $this->_storage = new $adapterClassName($this->_config);
    }
private function _setStorageAdapter ( string $ adapterName ) : void { $ adapterClassName = self :: STORAGE_MAP [ $ adapterName ] ?? $ adapterName ; if ( ! InterfaceHelper :: implementsInterface ( $ adapterClassName , StorageInterface :: class ) ) { throw new UnknownStorageAdapterException ( $ adapterClassName , \ array_values ( self :: STORAGE_MAP ) ) ; } $ this -> _storage = new $ adapterClassName ( $ this -> _config ) ; }
Sets internal storage adapter for this rule set.
@param string $adapterName
@throws \hamburgscleanest\GuzzleAdvancedThrottle\Exceptions\UnknownStorageAdapterException
Sets internal storage adapter for this rule set .