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