Resources/PhpOffice/Common/Adapter/Zip/ZipInterface.php
Dennis Eichhorn 7e0153ea0f perm change
2023-03-25 22:32:11 +00:00

39 lines
790 B
PHP
Executable File

<?php
namespace PhpOffice\Common\Adapter\Zip;
interface ZipInterface
{
/**
* Open a ZIP file archive
*
* @param string $filename
*
* @return $this
*
* @throws \Exception
*/
public function open($filename);
/**
* Close the active archive (opened or newly created)
*
* @return $this
*
* @throws \Exception
*/
public function close();
/**
* Add a file to a ZIP archive using its contents
*
* @param string $localname the name of the entry to create
* @param string $contents The contents to use to create the entry. It is used in a binary safe mode.
*
* @return $this
*
* @throws \Exception
*/
public function addFromString($localname, $contents);
}