| 1 | <?php |
||
| 9 | class ZipAlreadyExtractChecker implements AlreadyExtractCheckerInterface |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var Filesystem |
||
| 13 | */ |
||
| 14 | protected $fs; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @var string |
||
| 18 | */ |
||
| 19 | protected $archiveFile; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @param $archiveFile |
||
| 23 | */ |
||
| 24 | public function __construct($archiveFile) |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Return a code to know status |
||
| 32 | * 0 = No problem |
||
| 33 | * 1 = One file on extracted archive maybe corrupted |
||
| 34 | * 2 = One file is not extracted |
||
| 35 | * 3 = Archive can't be open |
||
| 36 | * @param string $path |
||
| 37 | * @return int |
||
| 38 | */ |
||
| 39 | public function isAlreadyExtracted($path) |
||
| 64 | } |
||
| 65 |