1 | <?php declare(strict_types=1); |
||
14 | final class Client implements ClientInterface |
||
15 | { |
||
16 | /** |
||
17 | * @var LoopInterface |
||
18 | */ |
||
19 | private $loop; |
||
20 | |||
21 | /** |
||
22 | * @var AsyncClient |
||
23 | */ |
||
24 | private $asyncClient; |
||
25 | |||
26 | /** |
||
27 | * @param LoopInterface $loop |
||
28 | * @param AsyncClient $client |
||
29 | 1 | */ |
|
30 | private function __construct(LoopInterface $loop, AsyncClient $client) |
||
35 | |||
36 | /** |
||
37 | * @param AuthenticationInterface $auth |
||
38 | * @param array $options |
||
39 | * @return Client |
||
40 | 1 | */ |
|
41 | public static function create( |
||
62 | |||
63 | public function hydrate(string $resource): ResourceInterface |
||
70 | |||
71 | public function extract(ResourceInterface $resource): string |
||
78 | |||
79 | 1 | /** |
|
80 | * @param string $user |
||
81 | * @return UserInterface |
||
82 | */ |
||
83 | public function user(string $user): UserInterface |
||
90 | |||
91 | /** |
||
92 | * @return RateLimitState |
||
93 | */ |
||
94 | public function getRateLimitState(): RateLimitState |
||
98 | } |
||
99 |