|
@@ 230-237 (lines=8) @@
|
| 227 |
|
'return_type' => $this->getReturnType(), |
| 228 |
|
'mtime' => filemtime($path), |
| 229 |
|
] + $this->defaultSerializationData(); |
| 230 |
|
foreach ($this->arguments()->getValues() as $key => $val) { |
| 231 |
|
$info['arguments'][$key] = [ |
| 232 |
|
'description' => $this->arguments()->getDescription($key), |
| 233 |
|
]; |
| 234 |
|
if ($this->arguments()->hasDefault($key)) { |
| 235 |
|
$info['arguments'][$key]['default'] = $val; |
| 236 |
|
} |
| 237 |
|
} |
| 238 |
|
foreach ($this->options()->getValues() as $key => $val) { |
| 239 |
|
$info['options'][$key] = [ |
| 240 |
|
'description' => $this->options()->getDescription($key), |
|
@@ 238-245 (lines=8) @@
|
| 235 |
|
$info['arguments'][$key]['default'] = $val; |
| 236 |
|
} |
| 237 |
|
} |
| 238 |
|
foreach ($this->options()->getValues() as $key => $val) { |
| 239 |
|
$info['options'][$key] = [ |
| 240 |
|
'description' => $this->options()->getDescription($key), |
| 241 |
|
]; |
| 242 |
|
if ($this->options()->hasDefault($key)) { |
| 243 |
|
$info['options'][$key]['default'] = $val; |
| 244 |
|
} |
| 245 |
|
} |
| 246 |
|
foreach ($this->getParameters() as $i => $parameter) { |
| 247 |
|
// TODO: Also cache input/output params |
| 248 |
|
} |