TreeNode
final class \
One line of the tree. Keys with exactly one child are joined into a chain, so a node holds the keys of its whole chain.
Internal
Table of Contents
Properties
Methods
- children() : array<int, TreeNode>
- create() : self
- isBranch() : bool
Properties
$expanded
public
bool
$expanded
= false
$keys read-only
public
array
$keys
$level read-only
public
int
$level
$value read-only
public
mixed
$value
Methods
children()
public
children() : array<int, TreeNode>
Return values
array<int, TreeNode>create()
public
static create(string|int $key, mixed $value, int $level) : self
Parameters
- $key : string|int
- $value : mixed
- $level : int
Return values
selfisBranch()
public
isBranch() : bool