CostInterface
Magento\Catalog\Api\Data\CostInterface
What it does
This interface defines a data contract for managing product cost information in Magento 2.
Developers use this interface when they need to get or set product cost values across different store views, typically in API operations or when working with product cost data programmatically.
It provides a standardized way to handle cost, SKU, and store-specific cost information with support for extension attributes.
Public Methods
- setCost()
- getCost()
- setStoreId()
- getStoreId()
- setSku()
- getSku()
- getExtensionAttributes()
- setExtensionAttributes()