BasePriceInterface
Magento\Catalog\Api\Data\BasePriceInterface
What it does
This interface defines the contract for handling product base price data in Magento 2, including the price value, associated store ID, and product SKU.
Developers use this interface when working with pricing APIs to retrieve or set product prices programmatically, especially in multi-store environments where prices may vary by store.
It's commonly used in pricing services, API responses, and when implementing custom pricing logic.
Public Methods
- setPrice()
- getPrice()
- setStoreId()
- getStoreId()
- setSku()
- getSku()
- getExtensionAttributes()
- setExtensionAttributes()