Model
SourceItem
Magento\Inventory\Model\SourceItem
What it does
This model represents a source item in Magento's Multi-Source Inventory (MSI) system, linking a product SKU to a specific inventory source with its quantity and status.
Developers use this class when managing inventory levels across multiple warehouses or stock locations, allowing them to set and retrieve stock quantities for products at different sources.
Public Methods
- getSku()
- setSku()
- getSourceCode()
- setSourceCode()
- getQuantity()
- setQuantity()
- getStatus()
- setStatus()
- getExtensionAttributes()
- setExtensionAttributes()