Conditions | 2 |
Paths | 2 |
Total Lines | 7 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
27 | public static function filter($value, bool $allowNull = false, int $minValue = 0, int $maxValue = PHP_INT_MAX) |
||
28 | { |
||
29 | if ($minValue < 0) { |
||
30 | throw new \InvalidArgumentException("{$minValue} was not greater or equal to zero"); |
||
31 | } |
||
32 | |||
33 | return Ints::filter($value, $allowNull, $minValue, $maxValue); |
||
34 | } |
||
36 |