Model
StockResolver
Magento\InventorySales\Model\StockResolver
What it does
This class resolves which inventory stock is associated with a specific sales channel (like a website or store view).
Developers use this when they need to determine the correct stock source for inventory calculations based on a sales channel type and code, which is essential for multi-source inventory management in Magento 2.
Public Methods
- execute()