| @@ 24-35 (lines=12) @@ | ||
| 21 | /** |
|
| 22 | * {@inheritDoc} |
|
| 23 | */ |
|
| 24 | public function getArguments() : array |
|
| 25 | { |
|
| 26 | $arguments = []; |
|
| 27 | ||
| 28 | foreach ($this->items as $name => $value) { |
|
| 29 | if ($name[0] !== '-') { |
|
| 30 | $arguments[$name] = $value; |
|
| 31 | } |
|
| 32 | } |
|
| 33 | ||
| 34 | return $arguments; |
|
| 35 | } |
|
| 36 | ||
| 37 | /** |
|
| 38 | * {@inheritDoc} |
|
| @@ 40-51 (lines=12) @@ | ||
| 37 | /** |
|
| 38 | * {@inheritDoc} |
|
| 39 | */ |
|
| 40 | public function getOptions() : array |
|
| 41 | { |
|
| 42 | $options = []; |
|
| 43 | ||
| 44 | foreach ($this->items as $name => $value) { |
|
| 45 | if ($name[0] === '-' && $name !== '--') { |
|
| 46 | $options[$name] = $value; |
|
| 47 | } |
|
| 48 | } |
|
| 49 | ||
| 50 | return $options; |
|
| 51 | } |
|
| 52 | } |
|
| 53 | ||