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
2020 */
2121 private $ calculator ;
2222
23- /**
24- * @var AmountInterface|null
25- */
26- private $ lowestTierPrice = null ;
2723
2824 /**
2925 * @param CalculatorInterface $calculator
@@ -52,7 +48,7 @@ public function getValue(SaleableInterface $saleableItem)
5248 */
5349 public function getAmount (SaleableInterface $ saleableItem )
5450 {
55- $ this -> lowestTierPrice = null ;
51+ $ lowestTierPrice = null ;
5652 /** @var TierPrice $price */
5753 $ tierPrice = $ saleableItem ->getPriceInfo ()->getPrice (TierPrice::PRICE_CODE );
5854 $ tierPriceList = $ tierPrice ->getTierPriceList ();
@@ -64,10 +60,10 @@ public function getAmount(SaleableInterface $saleableItem)
6460 $ price = $ tierPrice ['price ' ];
6561 if ($ minPrice > $ price ->getValue ()) {
6662 $ minPrice = $ price ->getValue ();
67- $ this -> lowestTierPrice = $ price ;
63+ $ lowestTierPrice = $ price ;
6864 }
6965 }
7066
71- return $ this -> lowestTierPrice ;
67+ return $ lowestTierPrice ;
7268 }
7369}
You can’t perform that action at this time.
0 commit comments