1 | <?php |
||
5 | class Number |
||
6 | { |
||
7 | static function is_numeric( $num ) |
||
11 | |||
12 | static function is_int( $num ) |
||
16 | |||
17 | static function is_float( $num ) |
||
21 | |||
22 | static function less_than( $num, $limit ) |
||
26 | |||
27 | static function greater_than( $num, $limit ) |
||
31 | |||
32 | static function in_range( $num, $min, $max, $inclusive = false ) |
||
40 | } |
Adding explicit visibility (
private
,protected
, orpublic
) is generally recommend to communicate to other developers how, and from where this method is intended to be used.