class HelpDocument implements DomDataInterface (View source)

Properties

protected $command

var Command

protected $dom

var \DOMDocument

Methods

__construct(Command $command)

Create a help document from a Symfony Console command

getDomData()

Convert data into a \DomDocument.

generateBaseHelpDom(Command $command)

Create the base help DOM prior to alteration by the Command object.

alterHelpDocument(Command $command, DomDocument $dom)

Alter the DOM document per the command object

Details

__construct(Command $command)

Create a help document from a Symfony Console command

Parameters

Command $command

DomDocument getDomData()

Convert data into a \DomDocument.

Return Value

DomDocument

protected DomDocument generateBaseHelpDom(Command $command)

Create the base help DOM prior to alteration by the Command object.

Parameters

Command $command

Return Value

DomDocument

protected DomDocument alterHelpDocument(Command $command, DomDocument $dom)

Alter the DOM document per the command object

Parameters

Command $command
DomDocument $dom

Return Value

DomDocument