1 | <?php |
||
15 | class CompressFileStream implements FileStream |
||
16 | { |
||
17 | /** |
||
18 | * @var FileStream |
||
19 | */ |
||
20 | private $substream; |
||
21 | |||
22 | /** |
||
23 | * @var CompressorInterface |
||
24 | */ |
||
25 | private $compressor; |
||
26 | |||
27 | /** |
||
28 | * @var string |
||
29 | */ |
||
30 | private $filename; |
||
31 | |||
32 | /** |
||
33 | * @param FileStream $stream |
||
34 | * @param CompressorInterface $compressor |
||
35 | * @param string $filename |
||
36 | */ |
||
37 | 5 | public function __construct(FileStream $stream, CompressorInterface $compressor, $filename) |
|
43 | |||
44 | /** |
||
45 | * @return string |
||
46 | */ |
||
47 | 1 | public function getFilename() |
|
51 | |||
52 | 1 | public function open() |
|
56 | |||
57 | 1 | public function close() |
|
62 | |||
63 | /** |
||
64 | * @param Url $url |
||
65 | */ |
||
66 | 1 | public function push(Url $url) |
|
70 | |||
71 | /** |
||
72 | * @return int |
||
73 | */ |
||
74 | 1 | public function count() |
|
78 | } |
||
79 |