Total Complexity | 2 |
Total Lines | 36 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
21 | abstract class Pagination implements IteratorAggregate |
||
22 | { |
||
23 | use ParsesPages; |
||
|
|||
24 | use ResolvesPages; |
||
25 | |||
26 | /** |
||
27 | * The collector of pages. |
||
28 | */ |
||
29 | public readonly Book $book; |
||
30 | |||
31 | /** |
||
32 | * Yield the paginated items. |
||
33 | * |
||
34 | * @return Traversable<int, mixed> |
||
35 | */ |
||
36 | abstract public function getIterator(): Traversable; |
||
37 | |||
38 | /** |
||
39 | * Instantiate the class. |
||
40 | */ |
||
41 | 50 | final public function __construct( |
|
47 | } |
||
48 | |||
49 | /** |
||
50 | * Determine whether this pagination matches the configuration. |
||
51 | * |
||
52 | * @codeCoverageIgnore |
||
53 | */ |
||
54 | public function matches(): bool |
||
59 |