mirror of
https://github.com/Karaka-Management/Resources.git
synced 2026-01-26 19:28:40 +00:00
31 lines
735 B
PHP
31 lines
735 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);
|
|
}
|