| 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 |
||
| 39 | 5 | protected function validateValue($value, ?ValidationContext $context = null): Result |
|
| 40 | { |
||
| 41 | 5 | $result = new Result(); |
|
| 42 | 5 | if (!$this->getRuleSet()->validate($value, $context)->isValid()) { |
|
| 43 | 4 | $result->addError($this->formatMessage($this->message)); |
|
| 44 | } |
||
| 45 | |||
| 46 | 5 | return $result; |
|
| 47 | } |
||
| 59 |