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