1 | <?php declare(strict_types=1); |
||
12 | final class AsyncClient |
||
13 | { |
||
14 | /** |
||
15 | * @var ClientInterface |
||
16 | */ |
||
17 | private $client; |
||
18 | |||
19 | /** |
||
20 | * @param LoopInterface $loop |
||
21 | * @param AuthenticationInterface $auth |
||
22 | * @param array $options |
||
23 | * @return AsyncClient |
||
24 | */ |
||
25 | public static function create( |
||
34 | |||
35 | /** |
||
36 | * @param ClientInterface $client |
||
37 | */ |
||
38 | private function __construct(ClientInterface $client) |
||
42 | |||
43 | public function user(string $user): PromiseInterface |
||
47 | |||
48 | public function whoami(): PromiseInterface |
||
52 | } |
||
53 |