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