1 | <?php |
||
18 | class BinaryResolver implements |
||
19 | BinaryRequestInterface, |
||
20 | BinaryDecompressorInterface, |
||
21 | BinaryResolverInterface |
||
22 | { |
||
23 | use EventEmitterTrait; |
||
24 | |||
25 | /** |
||
26 | * @var BinaryRequestInterface |
||
27 | */ |
||
28 | protected $request; |
||
29 | |||
30 | /** |
||
31 | * @var BinaryDecompressorInterface |
||
32 | */ |
||
33 | protected $decompressor; |
||
34 | |||
35 | /** |
||
36 | * @var SystemInterface |
||
37 | */ |
||
38 | protected $system; |
||
39 | |||
40 | /** |
||
41 | * @param BinaryRequestInterface $request |
||
42 | * @param BinaryDecompressorInterface $decompressor |
||
43 | * @param SystemInterface $system |
||
44 | */ |
||
45 | public function __construct( |
||
56 | |||
57 | /** |
||
58 | * {@inheritdoc} |
||
59 | * |
||
60 | * @return BinaryRequestInterface|StandardBinaryRequest |
||
61 | */ |
||
62 | public function getBinaryRequest() |
||
69 | |||
70 | /** |
||
71 | * {@inheritdoc} |
||
72 | * |
||
73 | * @return BinaryDecompressorInterface|ZipDecompressor |
||
74 | */ |
||
75 | public function getBinaryDecompressor() |
||
82 | |||
83 | /** |
||
84 | * {@inheritdoc} |
||
85 | * |
||
86 | * @return System|SystemInterface |
||
87 | */ |
||
88 | public function getSystem() |
||
96 | |||
97 | /** |
||
98 | * {@inheritdoc} |
||
99 | * |
||
100 | * @param string $compressedFilePath |
||
101 | * @param string $directory |
||
102 | * @return bool |
||
103 | */ |
||
104 | public function extract($compressedFilePath, $directory) |
||
108 | |||
109 | /** |
||
110 | * {@inheritdoc} |
||
111 | * |
||
112 | * @param string $url |
||
113 | * @return string |
||
114 | */ |
||
115 | public function request($url) |
||
119 | } |
||
120 |