Conditions | 5 |
Paths | 7 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
58 | public function CheckMinMax($v) |
||
59 | { |
||
60 | if (null != $this->minInclusive) { |
||
61 | if ($v < $this->minInclusive) { |
||
62 | throw new \InvalidArgumentException("value below allowed min value " . __CLASS__); |
||
63 | } |
||
64 | } |
||
65 | if (null != $this->maxInclusive) { |
||
66 | if ($v > $this->maxInclusive) { |
||
67 | throw new \InvalidArgumentException(" value above allowed max value " . __CLASS__); |
||
68 | } |
||
69 | } |
||
70 | } |
||
71 | } |