Total Complexity | 2 |
Total Lines | 18 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
10 | final class ComposerBinPluginCommandFactory |
||
11 | { |
||
12 | 10 | public static function import(array $command): Command |
|
13 | { |
||
14 | 10 | Assert::requireFields(['package', 'namespace'], $command, 'ComposerBinPluginCommand'); |
|
15 | |||
16 | 8 | return new ComposerBinPluginCommand($command['package'], $command['namespace'], self::importLinks($command)); |
|
17 | } |
||
18 | |||
19 | 8 | private static function importLinks(array $command): Collection |
|
28 | ); |
||
29 | } |
||
31 |