class JsonDescriptor extends Descriptor

JSON descriptor.

Properties

protected OutputInterface $output from Descriptor

Methods

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

Describes an object if supported.

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

Writes content to output.

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

Describes an InputArgument instance.

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

Describes an InputOption instance.

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

Describes an InputDefinition instance.

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

Describes a Command instance.

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

Describes an Application instance.

Details

in Descriptor at line 37
describe(OutputInterface $output, object $object, array $options = [])

Describes an object if supported.

Parameters

OutputInterface $output
object $object
array $options

in Descriptor at line 68
protected write(string $content, bool $decorated = false)

Writes content to output.

Parameters

string $content
bool $decorated

at line 32
protected string|mixed describeInputArgument(InputArgument $argument, array $options = [])

Describes an InputArgument instance.

Parameters

InputArgument $argument
array $options

Return Value

string|mixed

at line 40
protected string|mixed describeInputOption(InputOption $option, array $options = [])

Describes an InputOption instance.

Parameters

InputOption $option
array $options

Return Value

string|mixed

at line 48
protected string|mixed describeInputDefinition(InputDefinition $definition, array $options = [])

Describes an InputDefinition instance.

Parameters

InputDefinition $definition
array $options

Return Value

string|mixed

at line 56
protected string|mixed describeCommand(Command $command, array $options = [])

Describes a Command instance.

Parameters

Command $command
array $options

Return Value

string|mixed

at line 64
protected string|mixed describeApplication(Application $application, array $options = [])

Describes an Application instance.

Parameters

Application $application
array $options

Return Value

string|mixed