addDefaultChildrenIfNoneSet() public method

Adds children with a default value when none are defined.
public addDefaultChildrenIfNoneSet ( integer | string | array | null $children = null ) : ArrayNodeDefinition
$children integer | string | array | null The number of children|The child name|The children names to be added This method is applicable to prototype nodes only.
return ArrayNodeDefinition
 public function testNestedPrototypedArrayNodes()
 {
     $node = new ArrayNodeDefinition('root');
     $node->addDefaultChildrenIfNoneSet()->prototype('array')->prototype('array');
     $node->getNode();
 }