mini\Parsing\NodeList
final
class
Documentation
NodeList
A list of Node instances that:
- can be echoed to reconstruct the exact concatenated text of all nodes,
- supports array access (
$list[0]), - is iterable, and
- implements Countable.
The root of a parsed tree is a NodeList, but NodeList is also used inside DelimitedNode instances for nested content.
Inheritance
Implements:
ArrayAccess
IteratorAggregate
Countable
Stringable
Traversable
Properties (1)
private
array $nodes
Methods (10)
Documentation missing
Reconstruct the original text represented by this list of nodes.
Documentation missing
Documentation missing
Documentation missing
Documentation missing
Iterate over all nodes.
Number of nodes in this list.
Return the underlying node array.
Walk all nodes depth-first, applying a callback to each