Exports an argument element into the given DOMElement.

category phpDocumentor
package Parser\Exporter\Xml
author Mike van Riel
license MIT
link http://phpdoc.org

 Methods

Exports the given reflection object to the parent XML element.

export(DOMElement $parent, phpDocumentor_Reflection_Argument $argument, DOMElement $child) : void

This method creates a new child element on the given parent XML element and takes the properties of the Reflection argument and sets the elements and attributes on the child. If a child DOMElement is provided then the properties and attributes are set on this but the child element is not appended onto the parent. This is the responsibility of the invoker. Essentially this means that the $parent argument is ignored in this case.

Parameters

$parent

\DOMElement

The parent element to augment.

$argument

\phpDocumentor_Reflection_Argument

The data source.

$child

\DOMElement

Optional: child element to use instead of creating a new one on the $parent.