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 | 15 | public function __construct($data) |
|
38 | |||
39 | /** |
||
40 | * {@inheritDoc} |
||
41 | */ |
||
42 | 11 | public function getCurrent() : Pair |
|
46 | |||
47 | /** |
||
48 | * {@inheritDoc} |
||
49 | */ |
||
50 | 15 | public function rewind() |
|
54 | |||
55 | /** |
||
56 | * {@inheritDoc} |
||
57 | */ |
||
58 | 15 | public function valid() |
|
62 | |||
63 | /** |
||
64 | * {@inheritDoc} |
||
65 | */ |
||
66 | 9 | public function next() |
|
72 | } |
||
73 |