| Total Complexity | 4 |
| Total Lines | 30 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | abstract class GroupRule extends Rule |
||
| 17 | { |
||
| 18 | 5 | public function __construct( |
|
| 19 | protected string $message = 'This value is not a valid.', |
||
| 20 | ?FormatterInterface $formatter = null, |
||
| 21 | bool $skipOnEmpty = false, |
||
| 22 | bool $skipOnError = false, |
||
| 23 | $when = null |
||
| 24 | ) { |
||
| 25 | 5 | parent::__construct(formatter: $formatter, skipOnEmpty: $skipOnEmpty, skipOnError: $skipOnError, when: $when); |
|
| 26 | } |
||
| 27 | |||
| 28 | 3 | protected function validateValue($value, ?ValidationContext $context = null): Result |
|
| 36 | } |
||
| 37 | |||
| 38 | /** |
||
| 39 | * Return custom rules set |
||
| 40 | */ |
||
| 41 | abstract protected function getRuleSet(): RuleSet; |
||
| 42 | |||
| 43 | 2 | public function getOptions(): array |
|
| 46 | } |
||
| 47 | } |
||
| 48 |