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