StockStatusInterface
Magento\CatalogInventory\Api\Data\StockStatusInterface
What it does
This interface defines the contract for managing product stock status data in Magento 2, including inventory quantities, stock availability (in/out of stock), and associated stock items.
Developers use this interface when working with inventory status operations, though it's deprecated since version 100.3.0 in favor of the Multi Source Inventory (MSI) system.
It provides methods to get and set product inventory information like quantity, stock status flags, and product/stock identifiers.
Public Methods
- getProductId()
- setProductId()
- getStockId()
- setStockId()
- getQty()
- setQty()
- getStockStatus()
- setStockStatus()
- getStockItem()
- getExtensionAttributes()
- setExtensionAttributes()