Skip to content

Commit 3b077a1

Browse files
committed
refactor: Rename PriceGrosser to TaxStripper
Renamed PriceGrosser class to TaxStripper for clarity and consistency with its functionality as a tax-related adjustment. This change improves code readability and aligns with the purpose of the class. 🔄
1 parent 3571f97 commit 3b077a1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Adjustments/Tax/PriceGrosser.php renamed to src/Adjustments/Tax/TaxStripper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
use function Lambdish\Phunctional\reduce;
1515

16-
final class PriceGrosser
16+
final class TaxStripper
1717
{
1818
private readonly Taxes $taxes;
1919

src/Cashier.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
use Brick\Money\Money;
1212
use UnitEnum;
1313
use Vaened\PriceEngine\Adjustments\{Adjustments, Charge, Discount};
14-
use Vaened\PriceEngine\Adjustments\Tax\{PriceGrosser, Taxes};
14+
use Vaened\PriceEngine\Adjustments\Tax\{TaxStripper, Taxes};
1515
use Vaened\PriceEngine\Money\{Amount};
1616

1717
use function dd;
@@ -41,7 +41,7 @@ public function __construct(
4141
$applicableTaxes = $allTaxes->toAdjustments();
4242

4343
$this->initializePrice(
44-
netUnitPrice: PriceGrosser::for($allTaxes)->clean($amount->value()),
44+
netUnitPrice: TaxStripper::for($allTaxes)->clean($amount->value()),
4545
taxes : $applicableTaxes
4646
);
4747
$this->initializeMoneyAdjustments($discounts, $charges, $applicableTaxes);

0 commit comments

Comments
 (0)