| 1 | <?php |
||
| 23 | class HashMapIterator extends MapIterator |
||
| 24 | { |
||
| 25 | /** |
||
| 26 | * @var Pair<KeyType, ValueType>[] |
||
| 27 | * @construct required |
||
| 28 | */ |
||
| 29 | protected $data; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @var Pair<KeyType, ValueType>[] |
||
| 33 | */ |
||
| 34 | 6 | public function __construct($data) |
|
| 38 | |||
| 39 | /** |
||
| 40 | * {@inheritDoc} |
||
| 41 | */ |
||
| 42 | 4 | public function getCurrent() : Pair |
|
| 46 | |||
| 47 | /** |
||
| 48 | * {@inheritDoc} |
||
| 49 | */ |
||
| 50 | 6 | public function rewind() |
|
| 54 | |||
| 55 | /** |
||
| 56 | * {@inheritDoc} |
||
| 57 | */ |
||
| 58 | 6 | public function valid() |
|
| 62 | |||
| 63 | /** |
||
| 64 | * {@inheritDoc} |
||
| 65 | */ |
||
| 66 | 2 | public function next() |
|
| 72 | } |
||
| 73 |