|
@@ 219-226 (lines=8) @@
|
| 216 |
|
'return_type' => $this->getReturnType(), |
| 217 |
|
'mtime' => filemtime($path), |
| 218 |
|
] + $this->defaultSerializationData(); |
| 219 |
|
foreach ($this->arguments()->getValues() as $key => $val) { |
| 220 |
|
$info['arguments'][$key] = [ |
| 221 |
|
'description' => $this->arguments()->getDescription($key), |
| 222 |
|
]; |
| 223 |
|
if ($this->arguments()->hasDefault($key)) { |
| 224 |
|
$info['arguments'][$key]['default'] = $val; |
| 225 |
|
} |
| 226 |
|
} |
| 227 |
|
foreach ($this->options()->getValues() as $key => $val) { |
| 228 |
|
$info['options'][$key] = [ |
| 229 |
|
'description' => $this->options()->getDescription($key), |
|
@@ 227-234 (lines=8) @@
|
| 224 |
|
$info['arguments'][$key]['default'] = $val; |
| 225 |
|
} |
| 226 |
|
} |
| 227 |
|
foreach ($this->options()->getValues() as $key => $val) { |
| 228 |
|
$info['options'][$key] = [ |
| 229 |
|
'description' => $this->options()->getDescription($key), |
| 230 |
|
]; |
| 231 |
|
if ($this->options()->hasDefault($key)) { |
| 232 |
|
$info['options'][$key]['default'] = $val; |
| 233 |
|
} |
| 234 |
|
} |
| 235 |
|
foreach ($this->getParameters() as $i => $parameter) { |
| 236 |
|
// TODO: Also cache input/output params |
| 237 |
|
} |