Conditions | 3 |
Paths | 3 |
Total Lines | 14 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
32 | public function parse($signature) |
||
33 | { |
||
34 | $this->setName($signature); |
||
35 | |||
36 | $argumentsOptions = $this->extractArgumentsOptions($signature); |
||
37 | |||
38 | foreach ($argumentsOptions as $value) { |
||
39 | if (substr($value, 0, 2) !== '--') { |
||
40 | $input = new Argument($value); |
||
41 | } else { |
||
42 | $input = new Option(trim($value, '--')); |
||
43 | } |
||
44 | |||
45 | $this->command->addInput($input->parse()); |
||
46 | } |
||
75 |