Total Complexity | 5 |
Total Lines | 47 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
9 | class CommandHydrator implements CommandHydratorInterface |
||
10 | { |
||
11 | /** |
||
12 | * @var \Nexus\CustomCommand\Business\Model\Finder\CommandFinderInterface |
||
13 | */ |
||
14 | private $commandFinder; |
||
15 | |||
16 | /** |
||
17 | * CommandHydrator constructor. |
||
18 | * |
||
19 | * @param \Nexus\CustomCommand\Business\Model\Finder\CommandFinderInterface $commandFinder |
||
20 | */ |
||
21 | 3 | public function __construct(CommandFinderInterface $commandFinder) |
|
24 | 3 | } |
|
25 | |||
26 | /** |
||
27 | * @param array $commands |
||
28 | * |
||
29 | * @return array |
||
30 | */ |
||
31 | 3 | public function hydrateCommands(array $commands): array |
|
38 | } |
||
39 | |||
40 | /** |
||
41 | * @return array |
||
42 | */ |
||
43 | 2 | private function getCommandsFromFinder(): array |
|
59 | } |