@@ -30,37 +30,37 @@ class Calculation extends \Magento\Framework\Model\AbstractModel implements Rese
3030 /**
3131 * Identifier constant for Tax calculation before discount excluding TAX
3232 */
33- const CALC_TAX_BEFORE_DISCOUNT_ON_EXCL = '0_0 ' ;
33+ public const CALC_TAX_BEFORE_DISCOUNT_ON_EXCL = '0_0 ' ;
3434
3535 /**
3636 * Identifier constant for Tax calculation before discount including TAX
3737 */
38- const CALC_TAX_BEFORE_DISCOUNT_ON_INCL = '0_1 ' ;
38+ public const CALC_TAX_BEFORE_DISCOUNT_ON_INCL = '0_1 ' ;
3939
4040 /**
4141 * Identifier constant for Tax calculation after discount excluding TAX
4242 */
43- const CALC_TAX_AFTER_DISCOUNT_ON_EXCL = '1_0 ' ;
43+ public const CALC_TAX_AFTER_DISCOUNT_ON_EXCL = '1_0 ' ;
4444
4545 /**
4646 * Identifier constant for Tax calculation after discount including TAX
4747 */
48- const CALC_TAX_AFTER_DISCOUNT_ON_INCL = '1_1 ' ;
48+ public const CALC_TAX_AFTER_DISCOUNT_ON_INCL = '1_1 ' ;
4949
5050 /**
5151 * Identifier constant for unit based calculation
5252 */
53- const CALC_UNIT_BASE = 'UNIT_BASE_CALCULATION ' ;
53+ public const CALC_UNIT_BASE = 'UNIT_BASE_CALCULATION ' ;
5454
5555 /**
5656 * Identifier constant for row based calculation
5757 */
58- const CALC_ROW_BASE = 'ROW_BASE_CALCULATION ' ;
58+ public const CALC_ROW_BASE = 'ROW_BASE_CALCULATION ' ;
5959
6060 /**
6161 * Identifier constant for total based calculation
6262 */
63- const CALC_TOTAL_BASE = 'TOTAL_BASE_CALCULATION ' ;
63+ public const CALC_TOTAL_BASE = 'TOTAL_BASE_CALCULATION ' ;
6464
6565 /**
6666 * Identifier constant for unit based calculation
@@ -169,22 +169,16 @@ class Calculation extends \Magento\Framework\Model\AbstractModel implements Rese
169169 protected $ priceCurrency ;
170170
171171 /**
172- * Filter Builder
173- *
174172 * @var FilterBuilder
175173 */
176174 protected $ filterBuilder ;
177175
178176 /**
179- * Search Criteria Builder
180- *
181177 * @var SearchCriteriaBuilder
182178 */
183179 protected $ searchCriteriaBuilder ;
184180
185181 /**
186- * Tax Class Repository
187- *
188182 * @var TaxClassRepositoryInterface
189183 */
190184 protected $ taxClassRepository ;
@@ -250,6 +244,8 @@ public function __construct(
250244 }
251245
252246 /**
247+ * Tax Calculation Model Contructor
248+ *
253249 * @return void
254250 */
255251 protected function _construct ()
@@ -495,7 +491,7 @@ protected function _isCrossBorderTradeEnabled($store = null)
495491 * @param null|int $customerTaxClass
496492 * @param null|int|\Magento\Store\Model\Store $store
497493 * @param int $customerId
498- * @return \Magento\Framework\DataObject
494+ * @return \Magento\Framework\DataObject
499495 * @SuppressWarnings(PHPMD.CyclomaticComplexity)
500496 * @SuppressWarnings(PHPMD.NPathComplexity)
501497 * @SuppressWarnings(PHPMD.ExcessiveMethodLength)
@@ -651,6 +647,7 @@ public function reproduceProcess($rates)
651647
652648 /**
653649 * Calculate rated tax amount based on price and tax rate.
650+ *
654651 * If you are using price including tax $priceIncludeTax should be true.
655652 *
656653 * @param float $price
@@ -688,6 +685,8 @@ public function round($price)
688685 }
689686
690687 /**
688+ * Get Tax Rates
689+ *
691690 * @param array $billingAddress
692691 * @param array $shippingAddress
693692 * @param int $customerTaxClassId
0 commit comments