TreeBuilder
in package
implements
NodeParentInterface
This is the entry class for building a config tree.
Tags
Table of Contents
Interfaces
- NodeParentInterface
- An interface that must be implemented by all node parents.
Properties
- $root : NodeDefinition
- $tree : NodeInterface|null
Methods
- __construct() : mixed
- buildTree() : NodeInterface
- Builds the tree.
- getRootNode() : NodeDefinition|ArrayNodeDefinition
- setPathSeparator() : void
Properties
$root
protected
NodeDefinition
$root
$tree
protected
NodeInterface|null
$tree
Methods
__construct()
public
__construct(string $name[, string $type = 'array' ][, NodeBuilder|null $builder = null ]) : mixed
Parameters
- $name : string
- $type : string = 'array'
- $builder : NodeBuilder|null = null
buildTree()
Builds the tree.
public
buildTree() : NodeInterface
Tags
Return values
NodeInterfacegetRootNode()
public
getRootNode() : NodeDefinition|ArrayNodeDefinition
Return values
NodeDefinition|ArrayNodeDefinition —The root node (as an ArrayNodeDefinition when the type is 'array')
setPathSeparator()
public
setPathSeparator(string $separator) : void
Parameters
- $separator : string