Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
26 | public function removeFrom(OrderInterface $order) |
||
27 | { |
||
28 | $adjustmentsToRemove = [ |
||
29 | AdjustmentInterface::ORDER_PROMOTION_ADJUSTMENT, |
||
30 | AdjustmentInterface::ORDER_ITEM_PROMOTION_ADJUSTMENT, |
||
31 | AdjustmentInterface::TAX_ADJUSTMENT |
||
32 | ]; |
||
33 | |||
34 | foreach ($adjustmentsToRemove as $type) { |
||
35 | $order->removeAdjustmentsRecursively($type); |
||
36 | } |
||
37 | } |
||
38 | } |
||
39 |