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
Methods
- __construct() : mixed
- buildTree() : NodeInterface
- Builds the tree.
- getRootNode() : NodeDefinition|ArrayNodeDefinition
- setPathSeparator() : mixed
Properties
$root
protected
mixed
$root
$tree
protected
mixed
$tree
Methods
__construct()
public
__construct(string $name[, string $type = 'array' ][, NodeBuilder $builder = null ]) : mixed
Parameters
- $name : string
- $type : string = 'array'
- $builder : NodeBuilder = 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) : mixed
Parameters
- $separator : string