| Total Complexity | 5 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 19 | final class RequiredHandler implements RuleHandlerInterface |
||
| 20 | { |
||
| 21 | use EmptyCheckTrait; |
||
| 22 | |||
| 23 | private FormatterInterface $formatter; |
||
| 24 | |||
| 25 | 22 | public function __construct(?FormatterInterface $formatter = null) |
|
| 26 | { |
||
| 27 | 22 | $this->formatter = $formatter ?? new Formatter(); |
|
| 28 | } |
||
| 29 | |||
| 30 | 22 | public function validate(mixed $value, object $rule, ?ValidationContext $context = null): Result |
|
| 47 | } |
||
| 48 | } |
||
| 49 |