| Total Complexity | 8 |
| Total Lines | 40 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 10 | final class FactoryPage implements Page |
||
| 11 | { |
||
| 12 | private $factory; |
||
| 13 | private Page $page; |
||
| 14 | |||
| 15 | 8 | public function __construct(callable $factory, Page $page) |
|
| 16 | { |
||
| 17 | 8 | $this->factory = $factory; |
|
| 18 | 8 | $this->page = $page; |
|
| 19 | 8 | } |
|
| 20 | |||
| 21 | 2 | public function currentOffset(): int |
|
| 22 | { |
||
| 23 | 2 | return $this->page->currentOffset(); |
|
| 24 | } |
||
| 25 | |||
| 26 | 2 | public function currentPage(): int |
|
| 27 | { |
||
| 28 | 2 | return $this->page->currentPage(); |
|
| 29 | } |
||
| 30 | |||
| 31 | 2 | public function currentLimit(): int |
|
| 34 | } |
||
| 35 | |||
| 36 | 5 | public function count(): int |
|
| 37 | { |
||
| 38 | 5 | return $this->page->count(); |
|
| 39 | } |
||
| 40 | |||
| 41 | 1 | public function totalCount(): int |
|
| 42 | { |
||
| 43 | 1 | return $this->page->totalCount(); |
|
| 44 | } |
||
| 45 | |||
| 46 | 6 | public function getIterator(): \Traversable |
|
| 50 | } |
||
| 51 | 6 | } |
|
| 52 | } |
||
| 53 |