W3cubDocs

/Symfony 4.1

XmlDescriptor

class XmlDescriptor extends Descriptor

XML descriptor.

Properties

protected OutputInterface $output from Descriptor

Methods

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

Describes an object if supported.

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

Writes content to output.

from Descriptor
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.

DOMDocument getInputDefinitionDocument(InputDefinition $definition)
DOMDocument getCommandDocument(Command $command)
DOMDocument getApplicationDocument(Application $application, string|null $namespace = null)

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

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

Describes an InputArgument instance.

Parameters

InputArgument $argument
array $options

Return Value

string|mixed

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

Describes an InputOption instance.

Parameters

InputOption $option
array $options

Return Value

string|mixed

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

Describes an InputDefinition instance.

Parameters

InputDefinition $definition
array $options

Return Value

string|mixed

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

Describes a Command instance.

Parameters

Command $command
array $options

Return Value

string|mixed

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

Describes an Application instance.

Parameters

Application $application
array $options

Return Value

string|mixed

DOMDocument getInputDefinitionDocument(InputDefinition $definition)

Parameters

InputDefinition $definition

Return Value

DOMDocument

DOMDocument getCommandDocument(Command $command)

Parameters

Command $command

Return Value

DOMDocument

DOMDocument getApplicationDocument(Application $application, string|null $namespace = null)

Parameters

Application $application
string|null $namespace

Return Value

DOMDocument

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Console/Descriptor/XmlDescriptor.html