| 1 | <?php |
||
| 13 | class Validator |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @var ValidatorInterface |
||
| 17 | */ |
||
| 18 | private $validator; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Validator constructor. |
||
| 22 | * |
||
| 23 | * @param ValidatorInterface $validator |
||
| 24 | */ |
||
| 25 | public function __construct(ValidatorInterface $validator) |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Validates a single item. |
||
| 32 | * |
||
| 33 | * @param mixed $item Item to validate |
||
| 34 | * |
||
| 35 | * @return void |
||
| 36 | * |
||
| 37 | * @throws ValidationException |
||
| 38 | */ |
||
| 39 | public function validate($item) |
||
| 47 | } |
||
| 48 |