| Total Complexity | 3 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 9 | final class IsEntityNoMatchValidator extends AbstractEntityValidator |
||
| 10 | { |
||
| 11 | public const IS_MATCH = 'is_match'; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * @var array<string, string> |
||
| 15 | */ |
||
| 16 | protected array $messageTemplates = [ |
||
| 17 | self::CRITERIA_EMPTY => 'No criteria was provided', |
||
| 18 | self::IS_MATCH => 'Value matched an existing entity', |
||
| 19 | ]; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @param mixed $value |
||
| 23 | * @param array<string, mixed> $context |
||
| 24 | * |
||
| 25 | * @throws RuntimeException |
||
| 26 | */ |
||
| 27 | public function isValid(mixed $value, array $context = []): bool |
||
| 46 |