mirror of
https://github.com/Karaka-Management/Resources.git
synced 2026-01-14 22:38:42 +00:00
39 lines
790 B
PHP
39 lines
790 B
PHP
<?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);
|
|
}
|