1 | <?php declare(strict_types=1); |
||
18 | final class AsyncClient |
||
19 | { |
||
20 | /** |
||
21 | * @var ClientInterface |
||
22 | */ |
||
23 | private $client; |
||
24 | |||
25 | /** |
||
26 | * @param LoopInterface $loop |
||
27 | * @param string $token |
||
28 | * @param array $options |
||
29 | * @return AsyncClient |
||
30 | */ |
||
31 | public static function create( |
||
40 | |||
41 | /** |
||
42 | * @param ClientInterface $client |
||
43 | * @return AsyncClient |
||
44 | */ |
||
45 | 6 | public static function createFromClient(ClientInterface $client): self |
|
49 | |||
50 | /** |
||
51 | * @param ClientInterface $client |
||
52 | */ |
||
53 | 6 | private function __construct(ClientInterface $client) |
|
57 | |||
58 | /** |
||
59 | * @param string $repository |
||
60 | * @return CancellablePromiseInterface |
||
61 | */ |
||
62 | 1 | public function repository(string $repository): CancellablePromiseInterface |
|
66 | |||
67 | /** |
||
68 | * @return ObservableInterface |
||
69 | */ |
||
70 | public function repositories(): ObservableInterface |
||
80 | |||
81 | /** |
||
82 | * @return PromiseInterface |
||
83 | */ |
||
84 | public function user(): PromiseInterface |
||
88 | |||
89 | /** |
||
90 | * @param int $id |
||
91 | * @return PromiseInterface |
||
92 | */ |
||
93 | 1 | public function sshKey(int $id): PromiseInterface |
|
97 | |||
98 | /** |
||
99 | * @return ObservableInterface |
||
100 | */ |
||
101 | public function hooks(): ObservableInterface |
||
107 | |||
108 | /** |
||
109 | * @return ObservableInterface |
||
110 | */ |
||
111 | public function accounts(): ObservableInterface |
||
117 | |||
118 | /** |
||
119 | * @return ObservableInterface |
||
120 | */ |
||
121 | public function broadcasts(): ObservableInterface |
||
127 | } |
||
128 |