Total Complexity | 4 |
Total Lines | 25 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
16 | class GroupRuleHandler implements RuleHandlerInterface |
||
17 | { |
||
18 | private FormatterInterface $formatter; |
||
19 | |||
20 | 6 | public function __construct(?FormatterInterface $formatter = null) |
|
21 | { |
||
22 | 6 | $this->formatter = $formatter ?? new Formatter(); |
|
23 | } |
||
24 | |||
25 | 6 | public function validate(mixed $value, object $rule, ?ValidationContext $context = null): Result |
|
41 | } |
||
42 | } |
||
43 |