getParentClass(); if ($parent) { $this->visitRelations($node, [$parent->getName()], $visitor); } } protected function buildRelation(NodeInterface $source, NodeInterface $target) { return new ExtendsClass($source, $target); } public function toConfig(array &$conf) { $conf['decorators'][] = 'inheritance'; } }