1 | <?php |
||
46 | class IsNumeric |
||
47 | { |
||
48 | /** |
||
49 | * do we have something that can be used as a number? |
||
50 | * |
||
51 | * NOTE that we don't guarantee an int, a float, or even a base-10 |
||
52 | * number in this check, even though that might be what you're hoping |
||
53 | * for |
||
54 | * |
||
55 | * @param mixed $item |
||
56 | * the item to be checked |
||
57 | * @return boolean |
||
58 | * TRUE if the item can be used as a number |
||
59 | * FALSE otherwise |
||
60 | */ |
||
61 | public static function check($item) |
||
71 | |||
72 | /** |
||
73 | * do we have something that can be used as a number? |
||
74 | * |
||
75 | * NOTE that we don't guarantee an int, a float, or even a base-10 |
||
76 | * number in this check, even though that might be what you're hoping |
||
77 | * for |
||
78 | * |
||
79 | * @deprecated since 2.10.0 |
||
80 | * @codeCoverageIgnore |
||
81 | * @param mixed $item |
||
82 | * the item to be checked |
||
83 | * @return boolean |
||
84 | * TRUE if the item can be used as a number |
||
85 | * FALSE otherwise |
||
86 | */ |
||
87 | public static function checkMixed($item) |
||
91 | |||
92 | /** |
||
93 | * do we have something that can be used as a number? |
||
94 | * |
||
95 | * NOTE that we don't guarantee an int, a float, or even a base-10 |
||
96 | * number in this check, even though that might be what you're hoping |
||
97 | * for |
||
98 | * |
||
99 | * @param mixed $item |
||
100 | * the item to be checked |
||
101 | * @return boolean |
||
102 | * TRUE if the item can be used as a number |
||
103 | * FALSE otherwise |
||
104 | */ |
||
105 | public function __invoke($item) |
||
109 | } |