PriceInfo
Magento\Catalog\Model\ProductRender\PriceInfo
What it does
This class serves as a data container for product pricing information in Magento 2's product rendering system.
Developers use it to store and retrieve various price types (final, regular, special, minimal, maximum) along with their formatted versions when rendering product data, particularly for APIs or frontend display.
It implements the PriceInfoInterface and provides getter/setter methods for all price-related attributes needed to display product pricing.
Public Methods
- getFinalPrice()
- setFinalPrice()
- getMaxRegularPrice()
- setMaxRegularPrice()
- getMinimalRegularPrice()
- setMinimalRegularPrice()
- setSpecialPrice()
- getSpecialPrice()
- getMaxPrice()
- setMaxPrice()
- getMinimalPrice()
- setMinimalPrice()
- getRegularPrice()
- setRegularPrice()
- getFormattedPrices()
- setFormattedPrices()
- getExtensionAttributes()
- setExtensionAttributes()