| 1 |
<?php |
| 2 |
|
| 3 |
namespace WPIDE\App\Services\Archiver; |
| 4 |
|
| 5 |
use WPIDE\App\Services\Storage\Filesystem; |
| 6 |
|
| 7 |
interface ArchiverInterface |
| 8 |
{ |
| 9 |
public function createArchive(Filesystem $storage): string; |
| 10 |
|
| 11 |
public function setArchive(Filesystem $storage, string $uniqid); |
| 12 |
|
| 13 |
public function uncompress(string $source, string $destination, Filesystem $storage); |
| 14 |
|
| 15 |
public function addEmptyDirectory(string $path, string $destination); |
| 16 |
|
| 17 |
public function addDirectoryFromStorage(string $path, string $destination); |
| 18 |
|
| 19 |
public function addFileFromStorage(string $path, string $destination); |
| 20 |
|
| 21 |
public function closeArchive(); |
| 22 |
|
| 23 |
public function storeArchive($destination, $name); |
| 24 |
} |
| 25 |
|