1 | <?php |
||
12 | class ZipCompressor implements CompressorInterface |
||
13 | { |
||
14 | /** |
||
15 | * @var \ZipArchive |
||
16 | */ |
||
17 | protected $zip; |
||
18 | |||
19 | /** |
||
20 | * @param \ZipArchive $zip |
||
21 | */ |
||
22 | 3 | public function __construct(\ZipArchive $zip) |
|
26 | |||
27 | /** |
||
28 | * @param string $source |
||
29 | * @param string $target |
||
30 | * |
||
31 | * @return bool |
||
32 | */ |
||
33 | 2 | public function compress($source, $target = '') |
|
47 | |||
48 | /** |
||
49 | * @param string $source |
||
50 | * @param string $target |
||
51 | * |
||
52 | * @return bool |
||
53 | */ |
||
54 | 2 | public function uncompress($source, $target) |
|
66 | } |
||
67 |