Skip to content

Commit 7f2a29f

Browse files
committed
Improved annotation for the roundAmount method in UnitBaseCalculator
1 parent 4153286 commit 7f2a29f

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

app/code/Magento/Tax/Model/Calculation/UnitBaseCalculator.php

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,14 @@
1010
class UnitBaseCalculator extends AbstractCalculator
1111
{
1212
/**
13-
* @param $amount
14-
* @param null $rate
15-
* @param null $direction
13+
* Determines the rounding operation type and rounds the amount
14+
*
15+
* @param float $amount
16+
* @param string $rate
17+
* @param bool $direction
1618
* @param string $type
1719
* @param bool $round
18-
* @param null $item
20+
* @param QuoteDetailsItemInterface $item
1921
* @return float|string
2022
*/
2123
protected function roundAmount(
@@ -37,8 +39,10 @@ protected function roundAmount(
3739
}
3840

3941
/**
40-
* @inheridoc
41-
* @param QuoteDetailsItemInterface $item
42+
* Calculate tax details for quote item with tax in price with given quantity
43+
*
44+
* @param QuoteDetai
45+
* lsItemInterface $item
4246
* @param int $quantity
4347
* @param bool $round
4448
* @return \Magento\Tax\Api\Data\TaxDetailsItemInterface
@@ -114,7 +118,8 @@ protected function calculateWithTaxInPrice(QuoteDetailsItemInterface $item, $qua
114118
}
115119

116120
/**
117-
* @inheridoc
121+
* Calculate tax details for quote item with tax not in price with given quantity
122+
*
118123
* @param QuoteDetailsItemInterface $item
119124
* @param int $quantity
120125
* @param bool $round

0 commit comments

Comments
 (0)