Total Complexity | 5 |
Total Lines | 36 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
5 | class AbstractIntegerCase |
||
6 | { |
||
7 | /** |
||
8 | * Indicates if the given value is an integer. |
||
9 | * |
||
10 | * @param $value |
||
11 | * |
||
12 | * @return bool |
||
13 | */ |
||
14 | 198 | protected function isInteger($value): bool |
|
15 | { |
||
16 | 198 | return is_int($value); |
|
17 | } |
||
18 | |||
19 | /** |
||
20 | * Indicates if the given value is numeric. |
||
21 | * |
||
22 | * @param $value |
||
23 | * |
||
24 | * @return bool |
||
25 | */ |
||
26 | 54 | protected function isNumeric($value): bool |
|
29 | } |
||
30 | |||
31 | /** |
||
32 | * Indicates if the given value is an integer or numeric. |
||
33 | * |
||
34 | * @param $value |
||
35 | * |
||
36 | * @return bool |
||
37 | */ |
||
38 | 33 | protected function isIntOrNumeric($value): bool |
|
41 | } |
||
42 | } |
||
43 |