abstract class Descriptor implements DescriptorInterface

Properties

protected OutputInterface $output

Methods

describe(OutputInterface $output, object $object, array $options = array())

Describes an object if supported.

write(string $content, bool $decorated = false)

Writes content to output.

string|mixed
describeInputArgument(InputArgument $argument, array $options = array())

Describes an InputArgument instance.

string|mixed
describeInputOption(InputOption $option, array $options = array())

Describes an InputOption instance.

string|mixed
describeInputDefinition(InputDefinition $definition, array $options = array())

Describes an InputDefinition instance.

string|mixed
describeCommand(Command $command, array $options = array())

Describes a Command instance.

string|mixed
describeApplication(Application $application, array $options = array())

Describes an Application instance.

Details

describe(OutputInterface $output, object $object, array $options = array())

Describes an object if supported.

Parameters

OutputInterface $output
object $object
array $options

protected write(string $content, bool $decorated = false)

Writes content to output.

Parameters

string $content
bool $decorated

abstract protected string|mixed describeInputArgument(InputArgument $argument, array $options = array())

Describes an InputArgument instance.

Parameters

InputArgument $argument
array $options

Return Value

string|mixed

abstract protected string|mixed describeInputOption(InputOption $option, array $options = array())

Describes an InputOption instance.

Parameters

InputOption $option
array $options

Return Value

string|mixed

abstract protected string|mixed describeInputDefinition(InputDefinition $definition, array $options = array())

Describes an InputDefinition instance.

Parameters

InputDefinition $definition
array $options

Return Value

string|mixed

abstract protected string|mixed describeCommand(Command $command, array $options = array())

Describes a Command instance.

Parameters

Command $command
array $options

Return Value

string|mixed

abstract protected string|mixed describeApplication(Application $application, array $options = array())

Describes an Application instance.

Parameters

Application $application
array $options

Return Value

string|mixed