| 1 | <?php |
||
| 12 | final class RepositoryHandler |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @var FetchAndHydrateService |
||
| 16 | */ |
||
| 17 | private $service; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @param FetchAndHydrateService $service |
||
| 21 | */ |
||
| 22 | public function __construct(FetchAndHydrateService $service) |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Fetch the given repository and hydrate it. |
||
| 29 | * |
||
| 30 | * @param RepositoryCommand $command |
||
| 31 | * @return PromiseInterface |
||
| 32 | */ |
||
| 33 | public function handle(RepositoryCommand $command): PromiseInterface |
||
| 41 | } |
||
| 42 |