Total Complexity | 5 |
Total Lines | 24 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | class TotalItemsAwarePagination extends Pagination |
||
14 | { |
||
15 | use YieldsItemsByLength; |
||
|
|||
16 | |||
17 | /** |
||
18 | * Determine whether this pagination matches the configuration. |
||
19 | */ |
||
20 | 34 | public function matches(): bool |
|
25 | } |
||
26 | |||
27 | /** |
||
28 | * Yield the paginated items. |
||
29 | * |
||
30 | * @return Traversable<int, mixed> |
||
31 | */ |
||
32 | 4 | public function getIterator(): Traversable |
|
40 |