Conditions | 6 |
Paths | 8 |
Total Lines | 17 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
38 | public function validation($v,&$e) |
||
39 | { |
||
40 | $max = $this->max; |
||
41 | $min = $this->min; |
||
42 | |||
43 | if(null !== $max && $v > $max) |
||
44 | { |
||
45 | $e = "must be less than {$max}"; |
||
46 | } |
||
47 | |||
48 | if(null !== $min && $v < $min) |
||
49 | { |
||
50 | $e = "must be greater than {$min}"; |
||
51 | } |
||
52 | |||
53 | return $e ? false : true; |
||
54 | } |
||
55 | |||
65 | } |