1 | <?php declare(strict_types=1); |
||
10 | final class SettingsHandler |
||
11 | { |
||
12 | /** |
||
13 | * @var FetchAndHydrateService |
||
14 | */ |
||
15 | private $service; |
||
16 | |||
17 | /** |
||
18 | * @param FetchAndHydrateService $service |
||
19 | */ |
||
20 | 1 | public function __construct(FetchAndHydrateService $service) |
|
24 | |||
25 | /** |
||
26 | * Fetch the given repository and hydrate it. |
||
27 | * |
||
28 | * @param SettingsCommand $command |
||
29 | * @return PromiseInterface |
||
30 | */ |
||
31 | 1 | public function handle(SettingsCommand $command): PromiseInterface |
|
39 | } |
||
40 |