class OrderedHashMapIterator implements Iterator

Iterator for {@link OrderedHashMap} objects.

Methods

__construct(array $elements, array $orderedKeys, array $managedCursors)

No description

__destruct()

Removes the iterator's cursors from the managed cursors of the corresponding {@link OrderedHashMap} instance.

current()

{@inheritdoc}

next()

{@inheritdoc}

key()

{@inheritdoc}

valid()

{@inheritdoc}

rewind()

{@inheritdoc}

Details

at line 69
__construct(array $elements, array $orderedKeys, array $managedCursors)

Parameters

array $elements The elements of the map, indexed by their keys
array $orderedKeys The keys of the map in the order in which they should be iterated
array $managedCursors An array from which to reference the iterator's cursor as long as it is alive. This array is managed by the corresponding {@link OrderedHashMap} instance to support recognizing the deletion of elements.

at line 83
__destruct()

Removes the iterator's cursors from the managed cursors of the corresponding {@link OrderedHashMap} instance.

at line 93
current()

{@inheritdoc}

at line 101
next()

{@inheritdoc}

at line 117
key()

{@inheritdoc}

at line 131
valid()

{@inheritdoc}

at line 139
rewind()

{@inheritdoc}