| 1 | <?php |
||
| 9 | final class CartItemExistsValidator extends ConstraintValidator |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var OrderItemRepositoryInterface |
||
| 13 | */ |
||
| 14 | private $orderItemRepository; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @param OrderItemRepositoryInterface $orderItemRepository |
||
| 18 | */ |
||
| 19 | public function __construct(OrderItemRepositoryInterface $orderItemRepository) |
||
| 23 | |||
| 24 | /** |
||
| 25 | * {@inheritdoc} |
||
| 26 | */ |
||
| 27 | public function validate($id, Constraint $constraint) |
||
| 33 | } |
||
| 34 |