Conditions | 1 |
Paths | 1 |
Total Lines | 5 |
Code Lines | 2 |
Lines | 0 |
Ratio | 0 % |
Tests | 3 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
10 | 10 | public static function import(array $definition): Command |
|
11 | { |
||
12 | 10 | Assert::requireFields(['repository', 'phar', 'bin'], $definition, 'BoxBuildCommand'); |
|
13 | |||
14 | 7 | return new BoxBuildCommand($definition['repository'], $definition['phar'], $definition['bin'], \sys_get_temp_dir(), $definition['version'] ?? null); |
|
15 | } |
||
17 |