Пример #1
0
 /**
  * Inherits the properties of an element in another class.
  *
  * @param PropertyNode $parent parent property to inherit from.
  *
  * @return void
  */
 public function inherit($parent)
 {
     $docblock = $this->getDocBlock();
     $docblock->inherited_tags = array_merge($docblock->inherited_tags, $this->inherited_tags);
     $docblock->inherit($parent->getDocBlock());
     $this->getNode()->appendChild(new \DOMElement('override_from', $this->class->getFQCN()));
 }