public function setStorage($storage)
    {
        if ($this->storage !== $storage || ! $this->handler) {

            $this->storage = $storage;

            $this->handler = $this->getFileHandlerFactory()->create($storage);
        }

        return $this;
    }
public function setStorage($storage)
    {
        if ($this->storage !== $storage || ! $this->handler) {

            $this->storage = $storage;

            $this->handler = $this->getFileHandlerFactory()->create($storage);
        }

        return $this;
    }
public function setStorage ( $ storage ) { if ( $ this -> storage !== $ storage || ! $ this -> handler ) { $ this -> storage = $ storage ; $ this -> handler = $ this -> getFileHandlerFactory ( ) -> create ( $ storage ) ; } return $ this ; }
Sets the storage disk identifier.

@param string $storage   disk identifier
@return $this
Sets the storage disk identifier .