Conditions | 3 |
Paths | 3 |
Total Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
45 | public function parse() |
||
46 | { |
||
47 | $input = new ArgvInput($this->arguments); |
||
48 | $parsed = []; |
||
49 | |||
50 | foreach ($this->search as $option) { |
||
51 | if ($input->hasParameterOption($option)) { |
||
52 | $name = ltrim($option, '-'); |
||
53 | $parsed[$name] = $input->getParameterOption($option); |
||
54 | } |
||
55 | } |
||
56 | |||
57 | return $parsed; |
||
58 | } |
||
59 | } |
||
60 |