MethodConverter

Converter used to create an XML Element representing the method, its arguments and its DocBlock.

In order to convert the arguments and DocBlock to their XML representation this class requires their respective converters.

package

Default

Methods

Initializes this converter with the Argument and DocBlock converter.

__construct(\phpDocumentor\Plugin\Core\Transformer\Writer\Xml\ArgumentConverter $argumentConverter, \phpDocumentor\Plugin\Core\Transformer\Writer\Xml\DocBlockConverter $docBlockConverter) 

Export the given reflected method definition to the provided parent element.

convert(\DOMElement $parent, \phpDocumentor\Descriptor\MethodDescriptor $method) : \DOMElement

Arguments

$parent

\DOMElement

Element to augment.

$method

\phpDocumentor\Descriptor\MethodDescriptor

Element to export.

Response

\DOMElement

Properties

argumentConverter

argumentConverter : \phpDocumentor\Plugin\Core\Transformer\Writer\Xml\ArgumentConverter

docBlockConverter

docBlockConverter : \phpDocumentor\Plugin\Core\Transformer\Writer\Xml\DocBlockConverter