1 | <?php declare(strict_types=1); |
||
15 | final class RepositoriesHandler |
||
16 | { |
||
17 | /** |
||
18 | * @var IteratePagesService |
||
19 | */ |
||
20 | private $iteratePagesService; |
||
21 | |||
22 | /** |
||
23 | * @var Hydrator |
||
24 | */ |
||
25 | private $hydrator; |
||
26 | |||
27 | /** |
||
28 | * @param IteratePagesService $iteratePagesService |
||
29 | * @param Hydrator $hydrator |
||
30 | */ |
||
31 | public function __construct(IteratePagesService $iteratePagesService, Hydrator $hydrator) |
||
36 | |||
37 | /** |
||
38 | * Fetch the given repository and hydrate it |
||
39 | * |
||
40 | * @param RepositoriesCommand $command |
||
41 | * @return PromiseInterface |
||
42 | */ |
||
43 | public function handle(RepositoriesCommand $command): PromiseInterface |
||
53 | } |
||
54 |