Contao\ZipWriter::__destruct PHP Method

__destruct() public method

Close the file handle if it has not been done yet
public __destruct ( )
    public function __destruct()
    {
        if (is_resource($this->resFile)) {
            fclose($this->resFile);
        }
        if (file_exists($this->strTemp)) {
            unlink($this->strTemp);
        }
    }