ImmutableNodeInterface
interface ImmutableNodeInterface
Interface for an immutable node class
Methods
getChildren(bool $recursive = false)
Get the children of this node
NodeInterface|null
getParent()
Get the parent of this node
getRoot()
Get the root of the tree
bool
hasChildren()
Test if this node has children
bool
hasParent()
Test if this node has a parent
NodeInterface|null
getSibling(bool $right = true)
Returns the right or left sibling of a node
Details
NodeInterface|null
getSibling(bool $right = true)
Since: 4.0.0
Returns the right or left sibling of a node