public function set($path, $create = false)
    {
        $zip = $this->zip;
        $flag = $create ? $zip::CREATE : null;

        if ($this->zip->open($path, $flag) !== true) {
            throw new RuntimeException("Failed to open ZIP file $path");
        }

        return $this;
    }
public function set($path, $create = false)
    {
        $zip = $this->zip;
        $flag = $create ? $zip::CREATE : null;

        if ($this->zip->open($path, $flag) !== true) {
            throw new RuntimeException("Failed to open ZIP file $path");
        }

        return $this;
    }
public function set ( $ path , $ create = false ) { $ zip = $ this -> zip ; $ flag = $ create ? $ zip :: CREATE : null ; if ( $ this -> zip -> open ( $ path , $ flag ) !== true ) { throw new RuntimeException ( "Failed to open ZIP file $path" ) ; } return $ this ; }
Sets a file path
@param string $path
@param bool $create
@throws RuntimeException
@return $this
Sets a file path