private function openZip($path)
    {
        $zip = new \ZipArchive();
        if (!$zip->open($path, \ZipArchive::CREATE)) {
            throw new IOException('Cannot create zip file');
        }

        return $zip;
    }
private function openZip($path)
    {
        $zip = new \ZipArchive();
        if (!$zip->open($path, \ZipArchive::CREATE)) {
            throw new IOException('Cannot create zip file');
        }

        return $zip;
    }
private function openZip ( $ path ) { $ zip = new \ ZipArchive ( ) ; if ( ! $ zip -> open ( $ path , \ ZipArchive :: CREATE ) ) { throw new IOException ( 'Cannot create zip file' ) ; } return $ zip ; }
Open zip from given path.

@param string $path

@return \ZipArchive
Open zip from given path .