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() |
||
60 | |||
61 | /** |
||
62 | * @return int |
||
63 | */ |
||
64 | public function oldFileSize() |
||
68 | |||
69 | /** |
||
70 | * @return int |
||
71 | */ |
||
72 | public function newFileSize() |
||
76 | } |
||
77 |