Nodes
final class Nodes implements IteratorAggregate, ArrayAccess, Countable (View source)
An immutable, type-safe collection of Node objects
Methods
No description
No description
No description
No description
No description
No description
No description
No description
No description
Returns the node before the given $referenceNode in this set.
Returns all nodes before the given $referenceNode in this set
Returns the node after the given $referenceNode in this set.
Details
static Nodes
fromArray(array $nodes)
No description
static Nodes
createEmpty()
No description
Node|null
offsetGet(mixed $offset)
No description
ArrayIterator
getIterator()
No description
bool
offsetExists(mixed $offset)
No description
never
offsetSet(mixed $offset, mixed $value)
No description
never
offsetUnset(mixed $offset)
No description
int
count()
No description
Node|null
first()
No description
Nodes
reverse()
No description
bool
isEmpty()
No description
Node|null
previous(Node $referenceNode)
Returns the node before the given $referenceNode in this set.
Throws an exception if $referenceNode does not exist. Returns NULL if $referenceNode has no preceding sibling
Nodes
previousAll(Node $referenceNode)
Returns all nodes before the given $referenceNode in this set
Node|null
next(Node $referenceNode)
Returns the node after the given $referenceNode in this set.
Throws an exception if $referenceNode does not exist. Returns NULL if $referenceNode has no following sibling
Nodes
nextAll(Node $referenceNode)
Returns all nodes after the given $referenceNode in this set
Nodes
until(Node $referenceNode)
Returns all nodes after the given $referenceNode in this set