File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed
app/code/Magento/Catalog/Pricing/Price Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -20,10 +20,6 @@ class MinimalTierPriceCalculator implements MinimalPriceCalculatorInterface
20
20
*/
21
21
private $ calculator ;
22
22
23
- /**
24
- * @var AmountInterface|null
25
- */
26
- private $ lowestTierPrice = null ;
27
23
28
24
/**
29
25
* @param CalculatorInterface $calculator
@@ -52,7 +48,7 @@ public function getValue(SaleableInterface $saleableItem)
52
48
*/
53
49
public function getAmount (SaleableInterface $ saleableItem )
54
50
{
55
- $ this -> lowestTierPrice = null ;
51
+ $ lowestTierPrice = null ;
56
52
/** @var TierPrice $price */
57
53
$ tierPrice = $ saleableItem ->getPriceInfo ()->getPrice (TierPrice::PRICE_CODE );
58
54
$ tierPriceList = $ tierPrice ->getTierPriceList ();
@@ -64,10 +60,10 @@ public function getAmount(SaleableInterface $saleableItem)
64
60
$ price = $ tierPrice ['price ' ];
65
61
if ($ minPrice > $ price ->getValue ()) {
66
62
$ minPrice = $ price ->getValue ();
67
- $ this -> lowestTierPrice = $ price ;
63
+ $ lowestTierPrice = $ price ;
68
64
}
69
65
}
70
66
71
- return $ this -> lowestTierPrice ;
67
+ return $ lowestTierPrice ;
72
68
}
73
69
}
You can’t perform that action at this time.
0 commit comments