1 | <?php declare(strict_types=1); |
||
13 | final class Client implements ClientInterface |
||
14 | { |
||
15 | /** |
||
16 | * @var LoopInterface |
||
17 | */ |
||
18 | private $loop; |
||
19 | |||
20 | /** |
||
21 | * @var AsyncClient |
||
22 | */ |
||
23 | private $client; |
||
24 | |||
25 | /** |
||
26 | * @param LoopInterface $loop |
||
27 | * @param AsyncClient $client |
||
28 | */ |
||
29 | private function __construct(LoopInterface $loop, AsyncClient $client) |
||
34 | |||
35 | /** |
||
36 | * @param array $options |
||
37 | * @return Client |
||
38 | */ |
||
39 | public static function create( |
||
52 | |||
53 | /** |
||
54 | * @param string $input |
||
55 | * @return ExampleInterface |
||
56 | */ |
||
57 | public function method(string $input): ExampleInterface |
||
64 | |||
65 | /** |
||
66 | * @return array |
||
67 | */ |
||
68 | public function stream(string $input): array |
||
77 | } |
||
78 |