original_string: 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) : '');
      }
code: 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) : '');
      }
code_tokens: 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 ) : '' ) ; }
docstring: Adds the 'inherited_from' tag when a Descriptor inherits from another Descriptor.
  
  @param \DOMElement        $docBlock
  @param DescriptorAbstract $descriptor
  
  @return void
docstring_tokens: Adds the inherited_from tag when a Descriptor inherits from another Descriptor .