| 1 | <?php |
||
| 8 | class Validator |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var ValidatorInterface |
||
|
|
|||
| 12 | */ |
||
| 13 | private $validator; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * Validator constructor. |
||
| 17 | * |
||
| 18 | * @param ValidatorInterface $validator |
||
| 19 | */ |
||
| 20 | public function __construct(ValidatorInterface $validator) |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Validates a single item. |
||
| 27 | * |
||
| 28 | * @param mixed $item Item to validate |
||
| 29 | * |
||
| 30 | * @return void |
||
| 31 | * |
||
| 32 | * @throws ValidationException |
||
| 33 | */ |
||
| 34 | public function validate($item) |
||
| 42 | } |
||
| 43 |