BasePrice
Magento\Catalog\Model\Product\Price\BasePrice
What it does
This class serves as a Data Transfer Object (DTO) for product base price information in Magento 2.
Developers use it to encapsulate and transfer product pricing data including the price value, store ID, and product SKU between different layers of the application.
It's commonly used in price management operations, API responses, and when working with product pricing across multiple stores.
Public Methods
- setPrice()
- getPrice()
- setStoreId()
- getStoreId()
- setSku()
- getSku()
- getExtensionAttributes()
- setExtensionAttributes()