1 | <?php declare(strict_types=1); |
||
14 | final class AsyncClient |
||
15 | { |
||
16 | /** |
||
17 | * @var ClientInterface |
||
18 | */ |
||
19 | private $client; |
||
20 | |||
21 | /** |
||
22 | * @param LoopInterface $loop |
||
23 | * @param AuthenticationInterface $auth |
||
24 | * @param array $options |
||
25 | * @return AsyncClient |
||
26 | */ |
||
27 | public static function create( |
||
36 | |||
37 | /** |
||
38 | * @param ClientInterface $client |
||
39 | */ |
||
40 | private function __construct(ClientInterface $client) |
||
44 | |||
45 | public function user(string $user): PromiseInterface |
||
49 | |||
50 | public function whoami(): PromiseInterface |
||
54 | |||
55 | public function myOrganizations(): Observable |
||
59 | } |
||
60 |