$docBlockConverter
$docBlockConverter : \phpDocumentor\Plugin\Core\Transformer\Writer\Xml\DocBlockConverter
Converter used to create an XML Element representing the Trait and its Methods, Properties and DocBlock.
In order to convert the DocBlock to its XML representation this class requires the respective converter.
$docBlockConverter : \phpDocumentor\Plugin\Core\Transformer\Writer\Xml\DocBlockConverter
$methodConverter : \phpDocumentor\Plugin\Core\Transformer\Writer\Xml\MethodConverter
$propertyConverter : \phpDocumentor\Plugin\Core\Transformer\Writer\Xml\PropertyConverter
__construct(\phpDocumentor\Plugin\Core\Transformer\Writer\Xml\DocBlockConverter $docBlockConverter, \phpDocumentor\Plugin\Core\Transformer\Writer\Xml\MethodConverter $methodConverter, \phpDocumentor\Plugin\Core\Transformer\Writer\Xml\PropertyConverter $propertyConverter)
Initializes this converter with the DocBlock converter.
\phpDocumentor\Plugin\Core\Transformer\Writer\Xml\DocBlockConverter | $docBlockConverter | |
\phpDocumentor\Plugin\Core\Transformer\Writer\Xml\MethodConverter | $methodConverter | |
\phpDocumentor\Plugin\Core\Transformer\Writer\Xml\PropertyConverter | $propertyConverter |
convert(\DOMElement $parent, \phpDocumentor\Descriptor\TraitDescriptor $trait) : \DOMElement
Export the given reflected Trait definition to the provided parent element.
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.
\DOMElement | $parent | Element to augment. |
\phpDocumentor\Descriptor\TraitDescriptor | $trait | Element to export. |