7 declare(strict_types=1);
19 private $localeFormat;
27 $this->localeFormat = $localeFormat;
38 $regularPrice = $priceInfo->getPrice(
'regular_price');
39 $finalPrice = $priceInfo->getPrice(
'final_price');
43 'amount' => $this->localeFormat->getNumber($regularPrice->getAmount()->getValue()),
46 'amount' => $this->localeFormat->getNumber($finalPrice->getAmount()->getBaseAmount()),
49 'amount' => $this->localeFormat->getNumber($finalPrice->getAmount()->getValue()),
getFormattedPrices(\Magento\Framework\Pricing\PriceInfo\Base $priceInfo)
__construct(\Magento\Framework\Locale\Format $localeFormat)