| @@ 83-93 (lines=11) @@ | ||
| 80 | } |
|
| 81 | } |
|
| 82 | ||
| 83 | private function checkMin() |
|
| 84 | { |
|
| 85 | $this->errorMessageTemplate = self::DATA_MIN_ERROR . $this->options['min']; |
|
| 86 | if ($this->options['min'] === null) { |
|
| 87 | return true; |
|
| 88 | } |
|
| 89 | if ($this->datum < $this->options['min']) { |
|
| 90 | $this->throwException(); |
|
| 91 | } |
|
| 92 | return true; |
|
| 93 | } |
|
| 94 | ||
| 95 | private function checkMax() |
|
| 96 | { |
|
| @@ 95-105 (lines=11) @@ | ||
| 92 | return true; |
|
| 93 | } |
|
| 94 | ||
| 95 | private function checkMax() |
|
| 96 | { |
|
| 97 | $this->errorMessageTemplate = self::DATA_MIN_ERROR . $this->options['max']; |
|
| 98 | if ($this->options['max'] === null) { |
|
| 99 | return true; |
|
| 100 | } |
|
| 101 | if ($this->datum > $this->options['min']) { |
|
| 102 | $this->throwException(); |
|
| 103 | } |
|
| 104 | return true; |
|
| 105 | } |
|
| 106 | /** |
|
| 107 | * {@inheritdoc} |
|
| 108 | */ |
|