|
@@ 56-63 (lines=8) @@
|
| 53 |
|
$this->setName($signature['name']); |
| 54 |
|
$this->setDescription($this->description()); |
| 55 |
|
|
| 56 |
|
if (is_array($signature['arguments']) && count($signature['arguments']) > 0) { |
| 57 |
|
foreach ($signature['arguments'] as $argument) { |
| 58 |
|
$this->addArgument($argument['name'], $argument['type'], $argument['description'], |
| 59 |
|
$argument['default']); |
| 60 |
|
} |
| 61 |
|
} else { |
| 62 |
|
$this->getDefinition()->addArguments($this->returnArguments()); |
| 63 |
|
} |
| 64 |
|
|
| 65 |
|
if (is_array($signature['options']) && count($signature['options']) > 0) { |
| 66 |
|
foreach ($signature['options'] as $option) { |
|
@@ 65-71 (lines=7) @@
|
| 62 |
|
$this->getDefinition()->addArguments($this->returnArguments()); |
| 63 |
|
} |
| 64 |
|
|
| 65 |
|
if (is_array($signature['options']) && count($signature['options']) > 0) { |
| 66 |
|
foreach ($signature['options'] as $option) { |
| 67 |
|
$this->addOption($option['name'], null, $option['type'], $option['description'], $option['default']); |
| 68 |
|
} |
| 69 |
|
} else { |
| 70 |
|
$this->getDefinition()->addOptions($this->returnOptions()); |
| 71 |
|
} |
| 72 |
|
} |
| 73 |
|
|
| 74 |
|
/** |