1 | <?php |
||
5 | class Gzip |
||
6 | { |
||
7 | /** @var string */ |
||
8 | public $originalFilePath; |
||
9 | |||
10 | /** @var string */ |
||
11 | public $filePath; |
||
12 | |||
13 | /** @var bool */ |
||
14 | public $failed; |
||
15 | |||
16 | public function __construct(string $filePath) |
||
24 | |||
25 | /** |
||
26 | * @return string |
||
27 | */ |
||
28 | protected function compress() |
||
49 | |||
50 | /** |
||
51 | * @return int |
||
52 | */ |
||
53 | public function oldFileSize() |
||
57 | |||
58 | /** |
||
59 | * @return int |
||
60 | */ |
||
61 | public function newFileSize() |
||
65 | } |
||
66 |