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 AuthenticationInterface $auth |
||
27 | * @param array $options |
||
28 | * @return Client |
||
29 | */ |
||
30 | 1 | public static function create( |
|
51 | |||
52 | /** |
||
53 | * @param LoopInterface $loop |
||
54 | * @param AsyncClient $client |
||
55 | */ |
||
56 | 1 | private function __construct(LoopInterface $loop, AsyncClient $client) |
|
61 | |||
62 | /** |
||
63 | * @param string $user |
||
64 | * @return UserInterface |
||
65 | */ |
||
66 | public function user(string $user): UserInterface |
||
73 | |||
74 | /** |
||
75 | * @return RateLimitState |
||
76 | */ |
||
77 | 1 | public function getRateLimitState(): RateLimitState |
|
81 | } |
||
82 |