| Total Complexity | 3 |
| Total Lines | 13 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 2 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 10 | class ValidatorCollection extends AbstractCollection implements CollectionInterface |
||
| 11 | { |
||
| 12 | 27 | public function append(mixed $validator): void |
|
| 13 | { |
||
| 14 | 27 | if (!$validator instanceof ValidatorInterface) { |
|
| 15 | 1 | throw new InvalidArgumentException('You can only append a Del\Form\Validator\ValidatorInterface.'); |
|
| 16 | } |
||
| 17 | 26 | parent::append($validator); |
|
| 18 | } |
||
| 19 | |||
| 20 | 24 | public function current(): mixed |
|
| 23 | } |
||
| 24 | } |
||
| 25 |