| 1 | <?php |
||
| 11 | class ZipCompressor implements CompressorInterface |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @var \ZipArchive |
||
| 15 | */ |
||
| 16 | protected $zip; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @param \ZipArchive $zip |
||
| 20 | */ |
||
| 21 | public function __construct(\ZipArchive $zip) |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @param string $source |
||
| 28 | * @param string $target |
||
| 29 | * |
||
| 30 | * @return bool |
||
| 31 | */ |
||
| 32 | public function compress($source, $target = '') |
||
| 47 | } |
||
| 48 |