StockSourceLink
Magento\Inventory\Model\StockSourceLink
What it does
This model represents the link between inventory sources and stocks in Magento's Multi-Source Inventory (MSI) system.
Developers use this class to manage the relationship between sources (warehouses/locations) and stocks (groups of sources), including the priority order in which sources are used for order fulfillment.
It provides getter and setter methods for source code, stock ID, and priority values.
Public Methods
- getSourceCode()
- setSourceCode()
- getStockId()
- setStockId()
- getPriority()
- setPriority()
- getExtensionAttributes()
- setExtensionAttributes()