protected function returnStorageObject()
    {
        $driver = $this->driver;
        $options = $this->options;

        if (isset($this->supportedDriver[$driver])) {
            $class = $this->supportedDriver[$driver];

            return new $class($options);
        }

        throw new InvalidArgumentException("[{$driver}] not supported.");
    }
protected function returnStorageObject()
    {
        $driver = $this->driver;
        $options = $this->options;

        if (isset($this->supportedDriver[$driver])) {
            $class = $this->supportedDriver[$driver];

            return new $class($options);
        }

        throw new InvalidArgumentException("[{$driver}] not supported.");
    }
protected function returnStorageObject ( ) { $ driver = $ this -> driver ; $ options = $ this -> options ; if ( isset ( $ this -> supportedDriver [ $ driver ] ) ) { $ class = $ this -> supportedDriver [ $ driver ] ; return new $ class ( $ options ) ; } throw new InvalidArgumentException ( "[{$driver}] not supported." ) ; }
Return Storage Object.

@throws InvalidArgumentException If required driver is not supported

@return mixed
Return Storage Object .