| Total Complexity | 5 |
| Total Lines | 53 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | abstract class Iterators extends Combinatorics implements Countable, IteratorInterface |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * A copy of the dataset at a give time. |
||
| 16 | * |
||
| 17 | * @var array<int, mixed> |
||
| 18 | */ |
||
| 19 | protected $current; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @var int |
||
| 23 | */ |
||
| 24 | protected $key = 0; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * {@inheritdoc} |
||
| 28 | */ |
||
| 29 | public function current() |
||
| 30 | { |
||
| 31 | return $this->current; |
||
| 32 | } |
||
| 33 | |||
| 34 | /** |
||
| 35 | * {@inheritdoc} |
||
| 36 | */ |
||
| 37 | public function key() |
||
| 38 | { |
||
| 39 | return $this->key; |
||
| 40 | } |
||
| 41 | |||
| 42 | /** |
||
| 43 | * {@inheritdoc} |
||
| 44 | */ |
||
| 45 | public function rewind() |
||
| 48 | } |
||
| 49 | |||
| 50 | /** |
||
| 51 | * Convert the iterator into an array. |
||
| 52 | * |
||
| 53 | * @return array<int, mixed> |
||
| 54 | * The elements |
||
| 55 | */ |
||
| 56 | public function toArray() |
||
| 67 |