Total Complexity | 2 |
Total Lines | 29 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
20 | trait AssertPageTrait |
||
21 | { |
||
22 | use AssertRangeTrait; |
||
23 | use ValueToStringTrait; |
||
24 | |||
25 | /** |
||
26 | * Minimum page number |
||
27 | */ |
||
28 | private static int $pageMin = 1; |
||
29 | |||
30 | /** |
||
31 | * Maximum page number (PHP_INT_MAX) |
||
32 | */ |
||
33 | private static int $pageMax = PHP_INT_MAX; |
||
34 | |||
35 | /** |
||
36 | * Check value is a valid page number |
||
37 | */ |
||
38 | 16 | public static function assertPage(int $value, string $message = ''): void |
|
51 |