| 1 | <?php |
||
| 7 | class ArrayDatasetIterator extends GenericIterator |
||
| 8 | { |
||
| 9 | |||
| 10 | /** |
||
| 11 | * @var array |
||
| 12 | */ |
||
| 13 | protected $rows; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * Enter description here... |
||
| 17 | * |
||
| 18 | * @var array |
||
| 19 | */ |
||
| 20 | protected $keys; |
||
| 21 | |||
| 22 | /** |
||
| 23 | /* @var int |
||
| 24 | */ |
||
| 25 | protected $currentRow; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @param $rows |
||
| 29 | */ |
||
| 30 | 10 | public function __construct($rows) |
|
| 39 | |||
| 40 | /** |
||
| 41 | * @return int |
||
| 42 | */ |
||
| 43 | 10 | public function count() |
|
| 47 | |||
| 48 | /** |
||
| 49 | * @return bool |
||
| 50 | */ |
||
| 51 | 10 | public function hasNext() |
|
| 55 | |||
| 56 | /** |
||
| 57 | * @return Row |
||
| 58 | * @throws \ByJG\Serializer\Exception\InvalidArgumentException |
||
| 59 | * @throws \ByJG\Util\Exception\XmlUtilException |
||
| 60 | */ |
||
| 61 | 5 | public function moveNext() |
|
| 82 | |||
| 83 | public function key() |
||
| 87 | } |
||
| 88 |