TreeHelper
in package
implements
RecursiveIterator
FinalYes
The TreeHelper class provides methods to display tree-like structures.
Tags
Table of Contents
Interfaces
- RecursiveIterator
Methods
- createTree() : self
- current() : TreeNode
- getChildren() : RecursiveIterator
- hasChildren() : bool
- key() : int
- next() : void
- render() : void
- Recursively renders the tree to the output, applying the tree style.
- rewind() : void
- valid() : bool
Methods
createTree()
public
static createTree(OutputInterface $output[, string|TreeNode|null $root = null ][, iterable<string|int, mixed> $values = [] ][, TreeStyle|null $style = null ]) : self
Parameters
- $output : OutputInterface
- $root : string|TreeNode|null = null
- $values : iterable<string|int, mixed> = []
- $style : TreeStyle|null = null
Return values
selfcurrent()
public
current() : TreeNode
Return values
TreeNodegetChildren()
public
getChildren() : RecursiveIterator
Return values
RecursiveIteratorhasChildren()
public
hasChildren() : bool
Return values
boolkey()
public
key() : int
Return values
intnext()
public
next() : void
render()
Recursively renders the tree to the output, applying the tree style.
public
render() : void
rewind()
public
rewind() : void
valid()
public
valid() : bool