src/phpDocumentor/Plugin/Core/Transformer/Writer/Xml/DocBlockConverter.php
protected function addInheritedFromTag(\DOMElement $docBlock, $descriptor)
    {
        $parentElement = $descriptor->getInheritedElement();
        if (! $parentElement instanceof $descriptor) {
            return;
        }

        $child = new \DOMElement('tag');
        $docBlock->appendChild($child);

        $rule = $this->router->match($parentElement);

        $child->setAttribute('name', 'inherited_from');
        $child->setAttribute('description', $parentElement->getFullyQualifiedStructuralElementName());
        $child->setAttribute('refers', $parentElement->getFullyQualifiedStructuralElementName());
        $child->setAttribute('link', $rule ? $rule->generate($parentElement) : '');
    }
protected function addInheritedFromTag(\DOMElement $docBlock, $descriptor)
    {
        $parentElement = $descriptor->getInheritedElement();
        if (! $parentElement instanceof $descriptor) {
            return;
        }

        $child = new \DOMElement('tag');
        $docBlock->appendChild($child);

        $rule = $this->router->match($parentElement);

        $child->setAttribute('name', 'inherited_from');
        $child->setAttribute('description', $parentElement->getFullyQualifiedStructuralElementName());
        $child->setAttribute('refers', $parentElement->getFullyQualifiedStructuralElementName());
        $child->setAttribute('link', $rule ? $rule->generate($parentElement) : '');
    }
protected function addInheritedFromTag ( \ DOMElement $ docBlock , $ descriptor ) { $ parentElement = $ descriptor -> getInheritedElement ( ) ; if ( ! $ parentElement instanceof $ descriptor ) { return ; } $ child = new \ DOMElement ( 'tag' ) ; $ docBlock -> appendChild ( $ child ) ; $ rule = $ this -> router -> match ( $ parentElement ) ; $ child -> setAttribute ( 'name' , 'inherited_from' ) ; $ child -> setAttribute ( 'description' , $ parentElement -> getFullyQualifiedStructuralElementName ( ) ) ; $ child -> setAttribute ( 'refers' , $ parentElement -> getFullyQualifiedStructuralElementName ( ) ) ; $ child -> setAttribute ( 'link' , $ rule ? $ rule -> generate ( $ parentElement ) : '' ) ; }
Adds the 'inherited_from' tag when a Descriptor inherits from another Descriptor.

@param \DOMElement        $docBlock
@param DescriptorAbstract $descriptor

@return void
Adds the inherited_from tag when a Descriptor inherits from another Descriptor .