1 | <?php |
||
14 | final class Client implements ClientInterface |
||
15 | { |
||
16 | /** |
||
17 | * @var LoopInterface |
||
18 | */ |
||
19 | private $loop; |
||
20 | |||
21 | /** |
||
22 | * @var AsyncClientInterface |
||
23 | */ |
||
24 | private $asyncClient; |
||
25 | |||
26 | /** |
||
27 | * Create a new AsyncClient based on the loop and other options pass |
||
28 | * |
||
29 | * @param string $baseUrl |
||
30 | * @param string $username |
||
31 | * @param string $password |
||
32 | * @param array $options |
||
33 | * @return Client |
||
34 | */ |
||
35 | public static function create( |
||
47 | |||
48 | /** |
||
49 | * Create an Client from a AsyncClientInterface. |
||
50 | * Be sure to pass in a client with the options from ApiSettings and the Sync namespace suffix, |
||
51 | * and pass in the same loop as associated with the AsyncClient you're passing in. |
||
52 | * |
||
53 | * @param LoopInterface $loop |
||
54 | * @param AsyncClientInterface $asyncClient |
||
55 | * @return Client |
||
56 | */ |
||
57 | public static function createFromClient(LoopInterface $loop, AsyncClientInterface $asyncClient): self |
||
61 | |||
62 | /** |
||
63 | * @param LoopInterface $loop |
||
64 | * @param AsyncClientInterface $asyncClient |
||
65 | */ |
||
66 | private function __construct(LoopInterface $loop, AsyncClientInterface $asyncClient) |
||
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.