| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 28 | 3 | protected function validateValue($value, ?ValidationContext $context = null): Result |
|
| 29 | { |
||
| 30 | 3 | $result = new Result(); |
|
| 31 | 3 | if (!$this->getRuleSet()->validate($value, $context)->isValid()) { |
|
| 32 | 3 | $result->addError($this->formatMessage($this->message)); |
|
| 33 | } |
||
| 34 | |||
| 35 | 3 | return $result; |
|
| 36 | } |
||
| 48 |