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