| Total Complexity | 5 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php namespace Mbh\Collection\Traits\Sequenceable\Arrayed; |
||
| 13 | trait Iterator |
||
| 14 | { |
||
| 15 | protected $sfa = null; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Iterator |
||
| 19 | */ |
||
| 20 | public function current() |
||
| 21 | { |
||
| 22 | return $this->sfa->current(); |
||
| 23 | } |
||
| 24 | |||
| 25 | public function key(): int |
||
| 26 | { |
||
| 27 | return $this->sfa->key(); |
||
| 28 | } |
||
| 29 | |||
| 30 | public function next() |
||
| 31 | { |
||
| 32 | return $this->sfa->next(); |
||
| 33 | } |
||
| 34 | |||
| 35 | public function rewind() |
||
| 38 | } |
||
| 39 | |||
| 40 | public function valid() |
||
| 41 | { |
||
| 43 | } |
||
| 44 | |||
| 45 | abstract protected function checkCapacity(); |
||
| 46 | } |
||
| 47 |