| Total Complexity | 6 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 14 | class PageOuvrageCollectionDTO implements Iterator |
||
| 15 | { |
||
| 16 | private $items = []; |
||
| 17 | private $pointer = 0; |
||
| 18 | |||
| 19 | public function __construct(array $items) |
||
| 20 | { |
||
| 21 | $this->items = array_values($items); |
||
| 22 | } |
||
| 23 | |||
| 24 | public function current(): PageOuvrageDTO |
||
| 27 | } |
||
| 28 | |||
| 29 | public function key(): int |
||
| 30 | { |
||
| 31 | return $this->pointer; |
||
| 32 | } |
||
| 33 | |||
| 34 | public function next(): void |
||
| 37 | } |
||
| 38 | |||
| 39 | public function rewind(): void |
||
| 40 | { |
||
| 41 | $this->pointer = 0; |
||
| 42 | } |
||
| 43 | |||
| 44 | public function valid(): bool |
||
| 47 | } |
||
| 48 | } |