public function inhertDocBlock(MethodObject $method) {
$inherit = $method->export()->queryOne('phpdox:docblock');
if (!$inherit) { // no docblock, no work ;)
return;
}
$docNode = $this->ctx->queryOne('phpdox:docblock');
if (!$docNode) {
$this->setDocBlock(new DocBlock());
$docNode = $this->ctx->queryOne('phpdox:docblock');
}
$container = $docNode->appendElementNS(self::XMLNS, 'inherited');
$container->setAttribute(
$method->getOwner()->getType(),
$method->getOwner()->getName()
);
$container->appendChild($this->ctx->ownerDocument->importNode($inherit, true));
}