protected function createOrGetZip()
    {
        if (!isset($this->zip)) {
            $this->zip = new \ZipArchive();
            $zipFilePath = $this->getZipFilePath();

            $this->zip->open($zipFilePath, \ZipArchive::CREATE|\ZipArchive::OVERWRITE);
        }

        return $this->zip;
    }
protected function createOrGetZip()
    {
        if (!isset($this->zip)) {
            $this->zip = new \ZipArchive();
            $zipFilePath = $this->getZipFilePath();

            $this->zip->open($zipFilePath, \ZipArchive::CREATE|\ZipArchive::OVERWRITE);
        }

        return $this->zip;
    }
protected function createOrGetZip ( ) { if ( ! isset ( $ this -> zip ) ) { $ this -> zip = new \ ZipArchive ( ) ; $ zipFilePath = $ this -> getZipFilePath ( ) ; $ this -> zip -> open ( $ zipFilePath , \ ZipArchive :: CREATE | \ ZipArchive :: OVERWRITE ) ; } return $ this -> zip ; }
Returns the already created ZipArchive instance or
creates one if none exists.

@return \ZipArchive
Returns the already created ZipArchive instance or creates one if none exists .