| 1 | <?php |
||
| 12 | class NumberChecker |
||
| 13 | { |
||
| 14 | /* ----------------------------------------------------------------- |
||
| 15 | | Main Methods |
||
| 16 | | ----------------------------------------------------------------- |
||
| 17 | */ |
||
| 18 | |||
| 19 | /** |
||
| 20 | * Check if an integer is between two values. |
||
| 21 | * |
||
| 22 | * @param int $value |
||
| 23 | * @param int $min |
||
| 24 | * @param int $max |
||
| 25 | * |
||
| 26 | * @return bool |
||
| 27 | */ |
||
| 28 | 76 | public static function isIntBetween(int $value, int $min, int $max): bool |
|
| 32 | |||
| 33 | /** |
||
| 34 | * Check if value is integer. |
||
| 35 | * |
||
| 36 | * @param mixed $value |
||
| 37 | * |
||
| 38 | * @return bool |
||
| 39 | */ |
||
| 40 | 76 | public static function isIntValue($value): bool |
|
| 44 | } |
||
| 45 |