| Total Complexity | 2 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | trait AssertPageTrait |
||
| 24 | { |
||
| 25 | /** |
||
| 26 | * Minimum page number |
||
| 27 | * |
||
| 28 | * @var int |
||
| 29 | */ |
||
| 30 | private static $pageMin = 1; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Maximum page number |
||
| 34 | * |
||
| 35 | * @var int |
||
| 36 | */ |
||
| 37 | private static $pageMax = PHP_INT_MAX; |
||
| 38 | |||
| 39 | /** |
||
| 40 | * Validate page |
||
| 41 | * |
||
| 42 | * @param int $value |
||
| 43 | * @param string $message |
||
| 44 | * |
||
| 45 | * @return null |
||
| 46 | * @throws \TxTextControl\ReportingCloud\Exception\InvalidArgumentException |
||
| 47 | */ |
||
| 48 | 21 | public static function assertPage(int $value, string $message = '') |
|
| 61 |