| 1 | <?php namespace Arcanedev\Gravatar\Helpers; |
||
| 9 | class NumberChecker |
||
| 10 | { |
||
| 11 | /* ----------------------------------------------------------------- |
||
| 12 | | Main Methods |
||
| 13 | | ----------------------------------------------------------------- |
||
| 14 | */ |
||
| 15 | |||
| 16 | /** |
||
| 17 | * Check if an integer is between two values. |
||
| 18 | * |
||
| 19 | * @param int $value |
||
| 20 | * @param int $min |
||
| 21 | * @param int $max |
||
| 22 | * |
||
| 23 | * @return bool |
||
| 24 | */ |
||
| 25 | 32 | public static function isIntBetween($value, $min, $max) |
|
| 29 | |||
| 30 | /** |
||
| 31 | * Check if value is integer. |
||
| 32 | * |
||
| 33 | * @param mixed $value |
||
| 34 | * |
||
| 35 | * @return bool |
||
| 36 | */ |
||
| 37 | 32 | public static function isIntValue($value) |
|
| 41 | } |
||
| 42 |