1 | <?php |
||
6 | class Gzip |
||
7 | { |
||
8 | |||
9 | /** @var string */ |
||
10 | public $originalFilePath; |
||
11 | |||
12 | /** @var string */ |
||
13 | public $filePath; |
||
14 | |||
15 | /** @var bool */ |
||
16 | public $failed; |
||
17 | |||
18 | public function __construct(string $filePath) |
||
26 | |||
27 | /** |
||
28 | * @return string |
||
29 | */ |
||
30 | protected function compress() |
||
51 | |||
52 | /** |
||
53 | * @return int |
||
54 | */ |
||
55 | public function oldFileSize() |
||
59 | |||
60 | /** |
||
61 | * @return int |
||
62 | */ |
||
63 | public function newFileSize() |
||
67 | } |
||
68 |