public function Descriptor::describe in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/console/Descriptor/Descriptor.php \Symfony\Component\Console\Descriptor\Descriptor::describe()
Describes an InputArgument instance.
Parameters
OutputInterface $output:
object $object:
array $options:
Overrides DescriptorInterface::describe
File
- vendor/
symfony/ console/ Descriptor/ Descriptor.php, line 36
Class
- Descriptor
- @author Jean-François Simon <jeanfrancois.simon@sensiolabs.com>
Namespace
Symfony\Component\Console\DescriptorCode
public function describe(OutputInterface $output, $object, array $options = array()) {
$this->output = $output;
switch (true) {
case $object instanceof InputArgument:
$this
->describeInputArgument($object, $options);
break;
case $object instanceof InputOption:
$this
->describeInputOption($object, $options);
break;
case $object instanceof InputDefinition:
$this
->describeInputDefinition($object, $options);
break;
case $object instanceof Command:
$this
->describeCommand($object, $options);
break;
case $object instanceof Application:
$this
->describeApplication($object, $options);
break;
default:
throw new \InvalidArgumentException(sprintf('Object of type "%s" is not describable.', get_class($object)));
}
}