return $this->parent;
} /**
* Creates a child node.
*
* @throws \RuntimeException When the node type is not registered
* @throws \RuntimeException When the node class is not found
*/
public function node(?string
$name, string
$type): NodeDefinition
{ $class =
$this->
getNodeClass($type);
$node =
new $class($name);
$this->
append($node);
return $node;
} /**
* Appends a node definition.
*
* Usage:
*
* $node = new ArrayNodeDefinition('name')
* ->children()
* ->scalarNode('foo')->end()
* ->scalarNode('baz')->end()
* ->append($this->getBarNodeDefinition())
* ->end()
* ;
*
* @return $this
*/