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