Copied!
CloneableFinalInstantiableIterable
  • Implements
    Countable
    IteratorAggregate
    Stringable
    Traversable
Methods
public __construct(string $value = '', iterable $children = [])
public __toString() : string
public addChild(self|callable|string $node) : self
public count() : int
public static fromValues(iterable $nodes, ?self $node = NULL) : self
public getChildren() : Traversable
 
  • return \Traversable<int,\TreeNode>
public getIterator() : Traversable
 
  • return \Traversable<int,\TreeNode>
public getValue() : string
Properties
private array $children = []
 
  • var (\TreeNode|callable)[]
private readonly string $value
Methods
public static fromValues(iterable $nodes, ?self $node = NULL) : self
© 2025 Bruce Wells
Search Namespaces \ Classes
Configuration