IteratorAggregateTrait
A generic implementation of the IteratorAggregate interface.
Tags
Table of Contents
Properties
- $data : TData
- Holds the iterable data.
Methods
- getIterator() : ArrayIterator<TKey, TValue>
- Retrieve an external iterator.
Properties
$data
Holds the iterable data.
protected
TData
$data
= []
Methods
getIterator()
Retrieve an external iterator.
public
getIterator() : ArrayIterator<TKey, TValue>
APIYes
Return values
ArrayIterator<TKey, TValue> —New array iterator for data array