| 1 | <?php declare(strict_types=1); |
||
| 7 | class ValidatorCollection |
||
| 8 | { |
||
| 9 | protected $validators = []; |
||
| 10 | |||
| 11 | protected $messages = []; |
||
| 12 | |||
| 13 | 3 | public function __construct(ValidatorInterface ...$validators) |
|
| 17 | |||
| 18 | 2 | public function addValidator(ValidatorInterface $validator) : self |
|
| 23 | |||
| 24 | 2 | public function validate($value, array $context = []) : bool |
|
| 36 | |||
| 37 | 1 | public function getMessages() : array |
|
| 41 | } |
||
| 42 |