Total Complexity | 3 |
Total Lines | 14 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | #[Attribute(Attribute::TARGET_PROPERTY)] |
||
10 | class EqualOther extends AbstractValidation |
||
11 | { |
||
12 | const MESSAGE = 'The value should be equals to `%s`'; |
||
13 | |||
14 | public function __construct(private mixed $other, ?string $message = null) |
||
18 | } |
||
19 | |||
20 | protected function evaluate($input, array $context = []): bool |
||
25 |