mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-21 05:48:41 +00:00
Create ArchiveInterface.php
This commit is contained in:
parent
eb99aeb240
commit
c082826d32
57
Utils/IO/Zip/ArchiveInterface.php
Normal file
57
Utils/IO/Zip/ArchiveInterface.php
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
<?php
|
||||
/**
|
||||
* Orange Management
|
||||
*
|
||||
* PHP Version 7.1
|
||||
*
|
||||
* @category TBD
|
||||
* @package TBD
|
||||
* @author OMS Development Team <dev@oms.com>
|
||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link http://orange-management.com
|
||||
*/
|
||||
declare(strict_types=1);
|
||||
namespace phpOMS\Utils\IO\Zip;
|
||||
/**
|
||||
* Archive interface
|
||||
*
|
||||
* @category Framework
|
||||
* @package phpOMS\Utils\IO
|
||||
* @author OMS Development Team <dev@oms.com>
|
||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||
* @license OMS License 1.0
|
||||
* @link http://orange-management.com
|
||||
* @since 1.0.0
|
||||
*/
|
||||
interface ArchiveInterface
|
||||
{
|
||||
/**
|
||||
* Create archive.
|
||||
*
|
||||
* @param string[] $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
|
||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||
*/
|
||||
public static function pack(array $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
|
||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||
*/
|
||||
public static function unpack(string $source, string $destination) : bool;
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user