Conditions | 2 |
Paths | 2 |
Total Lines | 15 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
36 | public static function createCommandWithArguments( |
||
37 | string $key, |
||
38 | string $path, |
||
39 | $json, |
||
40 | ?string $existentialModifier = null |
||
41 | ) : CommandInterface { |
||
42 | $command = new self( |
||
43 | $key, |
||
44 | new Path($path), |
||
45 | json_encode($json) |
||
46 | ); |
||
47 | if ($existentialModifier !== null) { |
||
48 | return $command->withExistentialModifier($existentialModifier); |
||
49 | } |
||
50 | return $command; |
||
51 | } |
||
53 |