private function setZipFile($file)
    {
        $zip = new \ZipArchive();
        if (true !== $zip->open($file)) {
            throw new InternalServerErrorException('Error opening zip file.');
        }

        $this->zip = $zip;
        $this->zipFilePath = $file;
    }
private function setZipFile($file)
    {
        $zip = new \ZipArchive();
        if (true !== $zip->open($file)) {
            throw new InternalServerErrorException('Error opening zip file.');
        }

        $this->zip = $zip;
        $this->zipFilePath = $file;
    }
private function setZipFile ( $ file ) { $ zip = new \ ZipArchive ( ) ; if ( true !== $ zip -> open ( $ file ) ) { throw new InternalServerErrorException ( 'Error opening zip file.' ) ; } $ this -> zip = $ zip ; $ this -> zipFilePath = $ file ; }
Opens and sets the zip file for import.

@param string $file

@throws \DreamFactory\Core\Exceptions\InternalServerErrorException
Opens and sets the zip file for import .