TreeBuilder
in package
implements
NodeParentInterface
This is the entry class for building a config tree.
Tags
Interfaces, Classes and Traits
- NodeParentInterface
- An interface that must be implemented by all node parents.
Table of Contents
- $root : mixed
- $tree : mixed
- __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|null $builder = null ]) : mixed
Parameters
- $name : string
- $type : string = 'array'
- $builder : NodeBuilder|null = null
Return values
mixed —buildTree()
Builds the tree.
public
buildTree() : NodeInterface
Tags
Return values
NodeInterface —getRootNode()
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