phpOMS/Utils/IO/Zip/ArchiveInterface.php
Dennis Eichhorn 0a8a5c63c5
Some checks failed
Compress images / calibreapp/image-actions (push) Has been cancelled
CI / general_module_workflow_php (push) Has been cancelled
fix permissions
2025-04-02 14:15:07 +00:00

52 lines
1.1 KiB
PHP

<?php
/**
* Jingga
*
* PHP Version 8.2
*
* @package phpOMS\Utils\IO\Zip
* @copyright Dennis Eichhorn
* @license OMS License 2.2
* @version 1.0.0
* @link https://jingga.app
*/
declare(strict_types=1);
namespace phpOMS\Utils\IO\Zip;
/**
* Archive interface
*
* @package phpOMS\Utils\IO\Zip
* @license OMS License 2.2
* @link https://jingga.app
* @since 1.0.0
*/
interface ArchiveInterface
{
/**
* Create archive.
*
* @param string|array $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(string | array $sources, string $destination, bool $overwrite = false) : 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;
}