|
@@ 211-218 (lines=8) @@
|
| 208 |
|
'example_usages' => $this->getExampleUsages(), |
| 209 |
|
'return_type' => $this->getReturnType(), |
| 210 |
|
] + $this->defaultSerializationData(); |
| 211 |
|
foreach ($this->arguments()->getValues() as $key => $val) { |
| 212 |
|
$info['arguments'][$key] = [ |
| 213 |
|
'description' => $this->arguments()->getDescription($key), |
| 214 |
|
]; |
| 215 |
|
if ($this->arguments()->hasDefault($key)) { |
| 216 |
|
$info['arguments'][$key]['default'] = $val; |
| 217 |
|
} |
| 218 |
|
} |
| 219 |
|
foreach ($this->options()->getValues() as $key => $val) { |
| 220 |
|
$info['options'][$key] = [ |
| 221 |
|
'description' => $this->options()->getDescription($key), |
|
@@ 219-226 (lines=8) @@
|
| 216 |
|
$info['arguments'][$key]['default'] = $val; |
| 217 |
|
} |
| 218 |
|
} |
| 219 |
|
foreach ($this->options()->getValues() as $key => $val) { |
| 220 |
|
$info['options'][$key] = [ |
| 221 |
|
'description' => $this->options()->getDescription($key), |
| 222 |
|
]; |
| 223 |
|
if ($this->options()->hasDefault($key)) { |
| 224 |
|
$info['options'][$key]['default'] = $val; |
| 225 |
|
} |
| 226 |
|
} |
| 227 |
|
foreach ($this->getParameters() as $i => $parameter) { |
| 228 |
|
// TODO: Also cache input/output params |
| 229 |
|
} |