private function JsonDescriptor::getInputOptionData in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/console/Descriptor/JsonDescriptor.php \Symfony\Component\Console\Descriptor\JsonDescriptor::getInputOptionData()
Parameters
InputOption $option:
Return value
array
2 calls to JsonDescriptor::getInputOptionData()
- JsonDescriptor::describeInputOption in vendor/
symfony/ console/ Descriptor/ JsonDescriptor.php - Describes an InputOption instance.
- JsonDescriptor::getInputDefinitionData in vendor/
symfony/ console/ Descriptor/ JsonDescriptor.php
File
- vendor/
symfony/ console/ Descriptor/ JsonDescriptor.php, line 115
Class
- JsonDescriptor
- JSON descriptor.
Namespace
Symfony\Component\Console\DescriptorCode
private function getInputOptionData(InputOption $option) {
return array(
'name' => '--' . $option
->getName(),
'shortcut' => $option
->getShortcut() ? '-' . implode('|-', explode('|', $option
->getShortcut())) : '',
'accept_value' => $option
->acceptValue(),
'is_value_required' => $option
->isValueRequired(),
'is_multiple' => $option
->isArray(),
'description' => preg_replace('/\\s*[\\r\\n]\\s*/', ' ', $option
->getDescription()),
'default' => $option
->getDefault(),
);
}