ProductInterface
Magento\Catalog\Api\Data\ProductInterface
What it does
This interface defines the standard contract for product data objects in Magento 2's Catalog module.
Developers use this interface when working with product data through the API layer, ensuring consistent access to core product properties like SKU, name, price, status, visibility, and relationships (links, options, media gallery, tier prices).
It's essential for API-based product operations and custom module development that needs to interact with product data.
Public Methods
- getId()
- setId()
- getSku()
- setSku()
- getName()
- setName()
- getAttributeSetId()
- setAttributeSetId()
- getPrice()
- setPrice()
- getStatus()
- setStatus()
- getVisibility()
- setVisibility()
- getTypeId()
- setTypeId()
- getCreatedAt()
- setCreatedAt()
- getUpdatedAt()
- setUpdatedAt()
- getWeight()
- setWeight()
- getExtensionAttributes()
- setExtensionAttributes()
- getProductLinks()
- setProductLinks()
- getOptions()
- setOptions()
- getMediaGalleryEntries()
- setMediaGalleryEntries()
- getTierPrices()
- setTierPrices()