public function setProtectedFilesystem(Filesystem $filesystem)
    {
        if (!$filesystem->getAdapter() instanceof ProtectedAdapter) {
            throw new InvalidArgumentException("Configured adapter must implement ProtectedAdapter");
        }
        $this->protectedFilesystem = $filesystem;
        return $this;
    }
public function setProtectedFilesystem(Filesystem $filesystem)
    {
        if (!$filesystem->getAdapter() instanceof ProtectedAdapter) {
            throw new InvalidArgumentException("Configured adapter must implement ProtectedAdapter");
        }
        $this->protectedFilesystem = $filesystem;
        return $this;
    }
public function setProtectedFilesystem ( Filesystem $ filesystem ) { if ( ! $ filesystem -> getAdapter ( ) instanceof ProtectedAdapter ) { throw new InvalidArgumentException ( "Configured adapter must implement ProtectedAdapter" ) ; } $ this -> protectedFilesystem = $ filesystem ; return $ this ; }
Assign filesystem to use for non-public files

@param Filesystem $filesystem
@throws InvalidArgumentException
@return $this
Assign filesystem to use for non - public files