mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-11 17:58:41 +00:00
52 lines
1.1 KiB
PHP
52 lines
1.1 KiB
PHP
<?php
|
|
/**
|
|
* Orange Management
|
|
*
|
|
* PHP Version 7.2
|
|
*
|
|
* @package TBD
|
|
* @copyright Dennis Eichhorn
|
|
* @license OMS License 1.0
|
|
* @version 1.0.0
|
|
* @link http://website.orange-management.de
|
|
*/
|
|
declare(strict_types=1);
|
|
|
|
namespace phpOMS\Utils\IO\Zip;
|
|
|
|
/**
|
|
* Archive interface
|
|
*
|
|
* @package Framework
|
|
* @license OMS License 1.0
|
|
* @link http://website.orange-management.de
|
|
* @since 1.0.0
|
|
*/
|
|
interface ArchiveInterface
|
|
{
|
|
/**
|
|
* Create archive.
|
|
*
|
|
* @param mixed $sources Files and directories to compress
|
|
* @param string $destination Output destination
|
|
* @param bool $overwrite Overwrite if destination is existing
|
|
*
|
|
* @return bool
|
|
*
|
|
* @since 1.0.0
|
|
*/
|
|
public static function pack($sources, string $destination, bool $overwrite = true) : bool;
|
|
|
|
/**
|
|
* Unpack archive.
|
|
*
|
|
* @param string $source File to decompress
|
|
* @param string $destination Output destination
|
|
*
|
|
* @return bool
|
|
*
|
|
* @since 1.0.0
|
|
*/
|
|
public static function unpack(string $source, string $destination) : bool;
|
|
}
|