1 | <?php |
||
25 | class DeliverySettingValidator extends ItemValidator |
||
26 | { |
||
27 | /** |
||
28 | * @var DeliveryRepository |
||
29 | */ |
||
30 | protected $deliveryRepository; |
||
31 | |||
32 | /** |
||
33 | * DeliverySettingValidator constructor. |
||
34 | * |
||
35 | * @param DeliveryRepository $deliveryRepository |
||
36 | */ |
||
37 | 161 | public function __construct(DeliveryRepository $deliveryRepository) |
|
41 | |||
42 | /** |
||
43 | * validate |
||
44 | * |
||
45 | * @param ItemInterface $item |
||
46 | * @param PurchaseContext $context |
||
47 | * |
||
48 | * @throws InvalidItemException |
||
49 | */ |
||
50 | |||
51 | /** |
||
52 | * @param ItemInterface $item |
||
53 | * @param PurchaseContext $context |
||
54 | * |
||
55 | * @throws InvalidItemException |
||
56 | */ |
||
57 | 80 | protected function validate(ItemInterface $item, PurchaseContext $context) |
|
70 | |||
71 | /** |
||
72 | * handle |
||
73 | * |
||
74 | * @param ItemInterface $item |
||
75 | * @param PurchaseContext $context |
||
76 | */ |
||
77 | 1 | protected function handle(ItemInterface $item, PurchaseContext $context) |
|
81 | } |
||
82 |