Total Complexity | 3 |
Total Lines | 26 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | abstract class CompositeRule extends Rule implements CompositeRuleInterface |
||
11 | { |
||
12 | /** |
||
13 | * @var array<BaseRuleInterface> |
||
14 | */ |
||
15 | protected array $rules = []; |
||
16 | |||
17 | /** |
||
18 | * @param array<BaseRuleInterface> $rules |
||
19 | */ |
||
20 | public function __construct(array $rules) |
||
24 | } |
||
25 | } |
||
26 | |||
27 | /** |
||
28 | * {@inheritDoc} |
||
29 | * |
||
30 | * @return static |
||
31 | */ |
||
32 | public function addRule(BaseRuleInterface $rule): self |
||
38 |