final class TraversableNodes implements IteratorAggregate, Countable (View source)

Methods

fromArray(array $nodes)

No description

merge(TraversableNodes $other)

No description

bool
isEmpty()

No description

int
count()

No description

previous(TraversableNodeInterface $referenceNode)

Returns the node before the given $referenceNode in this set - or throws an exception if $referenceNode does not exist or is the first node in the set

previousAll(TraversableNodeInterface $referenceNode)

Returns all nodes before the given $referenceNode in this set

next(TraversableNodeInterface $referenceNode)

Returns the node after the given $referenceNode in this set - or throws an exception if $referenceNode does not exist or is the last node in the set

nextAll(TraversableNodeInterface $referenceNode)

Returns all nodes after the given $referenceNode in this set

until(TraversableNodeInterface $referenceNode)

Returns all nodes after the given $referenceNode in this set

getIterator()

No description

array
toArray()

No description

Details

static TraversableNodes fromArray(array $nodes)

No description

Parameters

array $nodes

Return Value

TraversableNodes

TraversableNodes merge(TraversableNodes $other)

No description

Parameters

TraversableNodes $other

Return Value

TraversableNodes

bool isEmpty()

No description

Return Value

bool

int count()

No description

Return Value

int

TraversableNodeInterface previous(TraversableNodeInterface $referenceNode)

Returns the node before the given $referenceNode in this set - or throws an exception if $referenceNode does not exist or is the first node in the set

Parameters

TraversableNodeInterface $referenceNode

Return Value

TraversableNodeInterface

TraversableNodes previousAll(TraversableNodeInterface $referenceNode)

Returns all nodes before the given $referenceNode in this set

Parameters

TraversableNodeInterface $referenceNode

Return Value

TraversableNodes

TraversableNodeInterface next(TraversableNodeInterface $referenceNode)

Returns the node after the given $referenceNode in this set - or throws an exception if $referenceNode does not exist or is the last node in the set

Parameters

TraversableNodeInterface $referenceNode

Return Value

TraversableNodeInterface

TraversableNodes nextAll(TraversableNodeInterface $referenceNode)

Returns all nodes after the given $referenceNode in this set

Parameters

TraversableNodeInterface $referenceNode

Return Value

TraversableNodes

TraversableNodes until(TraversableNodeInterface $referenceNode)

Returns all nodes after the given $referenceNode in this set

Parameters

TraversableNodeInterface $referenceNode

Return Value

TraversableNodes

ArrayIterator getIterator()

No description

Return Value

ArrayIterator

array toArray()

No description

Return Value

array