| Total Complexity | 2 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | final class UnsignedInt |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * Filters $value to an unsigned integer strictly. |
||
| 14 | * |
||
| 15 | * @see \TraderInteractive\Filter\Ints::filter() |
||
| 16 | * |
||
| 17 | * @param mixed $value The value to be checked. |
||
| 18 | * @param bool $allowNull Indicates if the value can be null. |
||
| 19 | * @param int $minValue Indicates the minimum acceptable value. |
||
| 20 | * @param int $maxValue Indicates the maximum acceptable value. |
||
| 21 | * |
||
| 22 | * @return int|null |
||
| 23 | * |
||
| 24 | * @throws \InvalidArgumentException if minvalue is not greater or equal to zero. |
||
| 25 | * @throws FilterException on failure to filter. |
||
| 26 | */ |
||
| 27 | public static function filter($value, bool $allowNull = false, int $minValue = 0, int $maxValue = PHP_INT_MAX) |
||
| 36 |