.. rst-class:: phpdoctorst
.. php:namespace:: JuliusHaertl\PHPDocToRst\Builder
.. php:class:: PhpDomainBuilder
.. rst-class:: phpdoc-description
| Class to build reStructuredText file with sphinxcontrib\-phpdomain syntax
:Source:
`src/Builder/PhpDomainBuilder.php#49 <https://github.com/juliushaertl/phpdoc-to-rst/blob/master/src/Builder/PhpDomainBuilder.php#L49>`_
:Parent:
:php:class:`JuliusHaertl\\PHPDocToRst\\Builder\\RstBuilder`
:Used traits:
:php:trait:`JuliusHaertl\\PHPDocToRst\\Builder\\ExtensionBuilder`
.. php:const:: SECTION_BEFORE_DESCRIPTION = self::class \. ::SECTION\_BEFORE\_DESCRIPTION
:Source:
`src/Builder/PhpDomainBuilder.php#51 <https://github.com/juliushaertl/phpdoc-to-rst/blob/master/src/Builder/PhpDomainBuilder.php#L51>`_
.. php:const:: SECTION_AFTER_DESCRIPTION = self::class \. ::SECTION\_AFTER\_DESCRIPTION
:Source:
`src/Builder/PhpDomainBuilder.php#52 <https://github.com/juliushaertl/phpdoc-to-rst/blob/master/src/Builder/PhpDomainBuilder.php#L52>`_
.. php:const:: SECTION_AFTER_TITLE = self::class \. ::SECTION\_AFTER\_TITLE
:Source:
`src/Builder/PhpDomainBuilder.php#53 <https://github.com/juliushaertl/phpdoc-to-rst/blob/master/src/Builder/PhpDomainBuilder.php#L53>`_
.. php:const:: SECTION_AFTER_INTRODUCTION = self::class \. ::SECTION\_AFTER\_INTRODUCTION
:Source:
`src/Builder/PhpDomainBuilder.php#54 <https://github.com/juliushaertl/phpdoc-to-rst/blob/master/src/Builder/PhpDomainBuilder.php#L54>`_
.. rst-class:: public
.. php:method:: public __construct( $extensions)
:Source:
`src/Builder/PhpDomainBuilder.php#60 <https://github.com/juliushaertl/phpdoc-to-rst/blob/master/src/Builder/PhpDomainBuilder.php#L60>`_
.. rst-class:: public static
.. php:method:: public static getNamespace(phpDocumentor\\Reflection\\Element $element)
.. rst-class:: phpdoc-description
| Strip element name from Fqsen to return the namespace only
:Source:
`src/Builder/PhpDomainBuilder.php#72 <https://github.com/juliushaertl/phpdoc-to-rst/blob/master/src/Builder/PhpDomainBuilder.php#L72>`_
:Parameters:
* **$element** (:any:`phpDocumentor\\Reflection\\Element <phpDocumentor\\Reflection\\Element>`)
:Returns: mixed
.. rst-class:: protected
.. php:method:: protected addPageHeader(phpDocumentor\\Reflection\\Element $element)
.. rst-class:: phpdoc-description
| Add namespace
:Source:
`src/Builder/PhpDomainBuilder.php#81 <https://github.com/juliushaertl/phpdoc-to-rst/blob/master/src/Builder/PhpDomainBuilder.php#L81>`_
:Parameters:
* **$element** (:any:`phpDocumentor\\Reflection\\Element <phpDocumentor\\Reflection\\Element>`)
.. rst-class:: protected
.. php:method:: protected addAfterIntroduction( $element)
:Source:
`src/Builder/PhpDomainBuilder.php#118 <https://github.com/juliushaertl/phpdoc-to-rst/blob/master/src/Builder/PhpDomainBuilder.php#L118>`_
.. rst-class:: protected
.. php:method:: protected addConstants( $constants)
:Source:
`src/Builder/PhpDomainBuilder.php#123 <https://github.com/juliushaertl/phpdoc-to-rst/blob/master/src/Builder/PhpDomainBuilder.php#L123>`_
.. rst-class:: protected
.. php:method:: protected addProperties( $properties)
:Source:
`src/Builder/PhpDomainBuilder.php#152 <https://github.com/juliushaertl/phpdoc-to-rst/blob/master/src/Builder/PhpDomainBuilder.php#L152>`_
:Parameters:
* **$properties** (:any:`phpDocumentor\\Reflection\\Php\\Property\[\] <phpDocumentor\\Reflection\\Php\\Property>`)
.. rst-class:: protected
.. php:method:: protected addParent( $element)
:Source:
`src/Builder/PhpDomainBuilder.php#182 <https://github.com/juliushaertl/phpdoc-to-rst/blob/master/src/Builder/PhpDomainBuilder.php#L182>`_
:Parameters:
* **$element** (:any:`phpDocumentor\\Reflection\\Php\\Interface\_ <phpDocumentor\\Reflection\\Php\\Interface\_>` | :any:`\\phpDocumentor\\Reflection\\Php\\Class\_ <phpDocumentor\\Reflection\\Php\\Class\_>`)
.. rst-class:: protected
.. php:method:: protected addUsedTraits( $element)
:Source:
`src/Builder/PhpDomainBuilder.php#200 <https://github.com/juliushaertl/phpdoc-to-rst/blob/master/src/Builder/PhpDomainBuilder.php#L200>`_
:Parameters:
* **$element** (:any:`phpDocumentor\\Reflection\\Php\\Class\_ <phpDocumentor\\Reflection\\Php\\Class\_>` | :any:`\\phpDocumentor\\Reflection\\Php\\Trait\_ <phpDocumentor\\Reflection\\Php\\Trait\_>`)
.. rst-class:: protected
.. php:method:: protected addMethods( $methods)
:Source:
`src/Builder/PhpDomainBuilder.php#213 <https://github.com/juliushaertl/phpdoc-to-rst/blob/master/src/Builder/PhpDomainBuilder.php#L213>`_
:Parameters:
* **$methods**
.. rst-class:: public static
.. php:method:: public static getLink( $type, $fqsen, $description="")
:Source:
`src/Builder/PhpDomainBuilder.php#309 <https://github.com/juliushaertl/phpdoc-to-rst/blob/master/src/Builder/PhpDomainBuilder.php#L309>`_
:Parameters:
* **$type** string
* **$fqsen** string
:Returns: string
.. rst-class:: public
.. php:method:: public beginPhpDomain( $type, $name, $indent=true)
:Source:
`src/Builder/PhpDomainBuilder.php#321 <https://github.com/juliushaertl/phpdoc-to-rst/blob/master/src/Builder/PhpDomainBuilder.php#L321>`_
:Parameters:
* **$type** string
* **$name** string
* **$indent** bool Should indent after the section started
.. rst-class:: public
.. php:method:: public endPhpDomain( $type="")
:Source:
`src/Builder/PhpDomainBuilder.php#333 <https://github.com/juliushaertl/phpdoc-to-rst/blob/master/src/Builder/PhpDomainBuilder.php#L333>`_
:Parameters:
* **$type** (string)
:Returns: $this
.. rst-class:: public
.. php:method:: public addDocBlockDescription( $element)
:Source:
`src/Builder/PhpDomainBuilder.php#342 <https://github.com/juliushaertl/phpdoc-to-rst/blob/master/src/Builder/PhpDomainBuilder.php#L342>`_
:Parameters:
* **$element** (:any:`phpDocumentor\\Reflection\\Php\\Class\_ <phpDocumentor\\Reflection\\Php\\Class\_>` | :any:`\\phpDocumentor\\Reflection\\Php\\Interface\_ <phpDocumentor\\Reflection\\Php\\Interface\_>` | :any:`\\phpDocumentor\\Reflection\\Php\\Trait\_ <phpDocumentor\\Reflection\\Php\\Trait\_>` | :any:`\\phpDocumentor\\Reflection\\Php\\Property <phpDocumentor\\Reflection\\Php\\Property>` | :any:`\\phpDocumentor\\Reflection\\Php\\Method <phpDocumentor\\Reflection\\Php\\Method>` | :any:`\\phpDocumentor\\Reflection\\Php\\Constant <phpDocumentor\\Reflection\\Php\\Constant>`)
:Returns: $this
.. rst-class:: protected
.. php:method:: protected addDocblockTag( $tagName, phpDocumentor\\Reflection\\DocBlock $docBlock)
:Source:
`src/Builder/PhpDomainBuilder.php#365 <https://github.com/juliushaertl/phpdoc-to-rst/blob/master/src/Builder/PhpDomainBuilder.php#L365>`_
:Parameters:
* **$tagName** (string) Name of the tag to parse
* **$docBlock** (:any:`phpDocumentor\\Reflection\\DocBlock <phpDocumentor\\Reflection\\DocBlock>`)
.. rst-class:: public static
.. php:method:: public static typesToRst( $typesString)
:Source:
`src/Builder/PhpDomainBuilder.php#425 <https://github.com/juliushaertl/phpdoc-to-rst/blob/master/src/Builder/PhpDomainBuilder.php#L425>`_
:Parameters:
* **$typesString** (string)
:Returns: bool | string
.. rst-class:: public
.. php:method:: public shouldRenderElement(phpDocumentor\\Reflection\\Element $element)
:Source:
`src/Builder/PhpDomainBuilder.php#451 <https://github.com/juliushaertl/phpdoc-to-rst/blob/master/src/Builder/PhpDomainBuilder.php#L451>`_
:Parameters:
* **$element** (:any:`phpDocumentor\\Reflection\\Element <phpDocumentor\\Reflection\\Element>`)
:Returns: bool