class TextDescriptorHelper extends AbstractDescriptorHelper (View source)

A descriptor helper to get different descriptor and render it.

Methods

__construct(DescriptorInterface $CommandDescriptor = null, DescriptorInterface $optionDescriptor = null)

The class constructor.

$this
setCommandDescriptor(DescriptorInterface $CommandDescriptor)

Command descriptor setter.

$this
setOptionDescriptor(DescriptorInterface $optionDescriptor)

Option descriptor setter.

string
describe(AbstractCommand $command)

Describe a command detail.

Details

__construct(DescriptorInterface $CommandDescriptor = null, DescriptorInterface $optionDescriptor = null)

The class constructor.

Parameters

DescriptorInterface $CommandDescriptor Command descriptor.
DescriptorInterface $optionDescriptor Option descriptor.

DescriptorInterface getCommandDescriptor()

Command descriptor getter.

Return Value

DescriptorInterface

$this setCommandDescriptor(DescriptorInterface $CommandDescriptor)

Command descriptor setter.

Parameters

DescriptorInterface $CommandDescriptor Command descriptor.

Return Value

$this Support chaining.

DescriptorInterface getOptionDescriptor()

Option descriptor getter.

Return Value

DescriptorInterface

$this setOptionDescriptor(DescriptorInterface $optionDescriptor)

Option descriptor setter.

Parameters

DescriptorInterface $optionDescriptor Option descriptor.

Return Value

$this Support chaining.

at line line 56
string describe(AbstractCommand $command)

Describe a command detail.

Parameters

AbstractCommand $command The command to described.

Return Value

string Return the described text.

Exceptions

RuntimeException