private function JsonDescriptor::getInputArgumentData in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/console/Descriptor/JsonDescriptor.php \Symfony\Component\Console\Descriptor\JsonDescriptor::getInputArgumentData()
Parameters
InputArgument $argument:
Return value
array
2 calls to JsonDescriptor::getInputArgumentData()
- JsonDescriptor::describeInputArgument in vendor/
symfony/ console/ Descriptor/ JsonDescriptor.php - Describes an InputArgument instance.
- JsonDescriptor::getInputDefinitionData in vendor/
symfony/ console/ Descriptor/ JsonDescriptor.php
File
- vendor/
symfony/ console/ Descriptor/ JsonDescriptor.php, line 99
Class
- JsonDescriptor
- JSON descriptor.
Namespace
Symfony\Component\Console\DescriptorCode
private function getInputArgumentData(InputArgument $argument) {
return array(
'name' => $argument
->getName(),
'is_required' => $argument
->isRequired(),
'is_array' => $argument
->isArray(),
'description' => preg_replace('/\\s*[\\r\\n]\\s*/', ' ', $argument
->getDescription()),
'default' => $argument
->getDefault(),
);
}