1 | <?php |
||
13 | final class Client implements ClientInterface |
||
14 | { |
||
15 | /** |
||
16 | * @var LoopInterface |
||
17 | */ |
||
18 | private $loop; |
||
19 | |||
20 | /** |
||
21 | * @var AsyncClientInterface |
||
22 | */ |
||
23 | private $asyncClient; |
||
24 | |||
25 | /** |
||
26 | * @param LoopInterface $loop |
||
27 | * @param AsyncClientInterface $asyncClient |
||
28 | */ |
||
29 | private function __construct(LoopInterface $loop, AsyncClientInterface $asyncClient) |
||
34 | |||
35 | /** |
||
36 | * Create a new AsyncClient based on the loop and other options pass. |
||
37 | * |
||
38 | * @param string $baseUrl |
||
39 | * @param string $username |
||
40 | * @param string $password |
||
41 | * @param array $options |
||
42 | * @return Client |
||
43 | */ |
||
44 | public static function create( |
||
57 | |||
58 | /** |
||
59 | * Create an Client from a AsyncClientInterface. |
||
60 | * Be sure to pass in a client with the options from ApiSettings and the Sync namespace suffix, |
||
61 | * and pass in the same loop as associated with the AsyncClient you're passing in. |
||
62 | * |
||
63 | * @param LoopInterface $loop |
||
64 | * @param AsyncClientInterface $asyncClient |
||
65 | * @return Client |
||
66 | */ |
||
67 | public static function createFromClient(LoopInterface $loop, AsyncClientInterface $asyncClient): self |
||
71 | |||
72 | /** |
||
73 | * @return OverviewInterface |
||
74 | */ |
||
75 | public function overview(): OverviewInterface |
||
82 | |||
83 | /** |
||
84 | * @return array |
||
85 | */ |
||
86 | public function queues(): array |
||
95 | |||
96 | /** |
||
97 | * @return array |
||
98 | */ |
||
99 | public function connections(): array |
||
108 | } |
||
109 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.