| 1 | <?php |
||
| 11 | final class CartItemExistsValidator extends ConstraintValidator |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @var OrderItemRepositoryInterface |
||
| 15 | */ |
||
| 16 | private $orderItemRepository; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @param OrderItemRepositoryInterface $orderItemRepository |
||
| 20 | */ |
||
| 21 | public function __construct(OrderItemRepositoryInterface $orderItemRepository) |
||
| 25 | |||
| 26 | /** |
||
| 27 | * {@inheritdoc} |
||
| 28 | */ |
||
| 29 | public function validate($id, Constraint $constraint) |
||
| 35 | } |
||
| 36 |