1 | <?php |
||
27 | class OrderShipmentTaxesApplicator implements OrderTaxesApplicatorInterface |
||
28 | { |
||
29 | /** |
||
30 | * @var CalculatorInterface |
||
31 | */ |
||
32 | private $calculator; |
||
33 | |||
34 | /** |
||
35 | * @var AdjustmentFactoryInterface |
||
36 | */ |
||
37 | private $adjustmentFactory; |
||
38 | |||
39 | /** |
||
40 | * @var TaxRateResolverInterface |
||
41 | */ |
||
42 | private $taxRateResolver; |
||
43 | |||
44 | /** |
||
45 | * @param CalculatorInterface $calculator |
||
46 | * @param AdjustmentFactoryInterface $adjustmentFactory |
||
47 | * @param TaxRateResolverInterface $taxRateResolver |
||
48 | */ |
||
49 | public function __construct( |
||
58 | |||
59 | /** |
||
60 | * {@inheritdoc} |
||
61 | */ |
||
62 | public function apply(OrderInterface $order, ZoneInterface $zone) |
||
81 | |||
82 | /** |
||
83 | * @param OrderInterface $order |
||
84 | * @param int $taxAmount |
||
85 | * @param string $label |
||
86 | * @param bool $included |
||
87 | */ |
||
88 | private function addAdjustment(OrderInterface $order, $taxAmount, $label, $included) |
||
96 | |||
97 | /** |
||
98 | * @param OrderInterface $order |
||
99 | * |
||
100 | * @return ShippingMethodInterface |
||
101 | */ |
||
102 | private function getShippingMethod(OrderInterface $order) |
||
112 | } |
||
113 |
Very long variable names usually make code harder to read. It is therefore recommended not to make variable names too verbose.