1 | <?php |
||
14 | final class AsyncClient implements AsyncClientInterface |
||
15 | { |
||
16 | /** |
||
17 | * @var FoundationClientInterface |
||
18 | */ |
||
19 | protected $client; |
||
20 | |||
21 | /** |
||
22 | * @param FoundationClientInterface $client |
||
23 | */ |
||
24 | public function __construct(FoundationClientInterface $client) |
||
28 | |||
29 | public function hydrate(string $resource): CancellablePromiseInterface |
||
33 | |||
34 | public function extract(ResourceInterface $resource): CancellablePromiseInterface |
||
38 | |||
39 | public function repository(string $login, string $name): PromiseInterface |
||
43 | |||
44 | public function addRepository(string $name): PromiseInterface |
||
48 | } |
||
49 |