GetStockItemData
Magento\InventoryIndexer\Model\ResourceModel\GetStockItemData
What it does
This class retrieves stock item data (quantity and salability status) for a specific product SKU and stock ID.
Developers use this when they need to check inventory levels and availability status for a product, such as during checkout validation or product display.
It handles both default stock (using legacy cataloginventory tables) and custom MSI stocks (using inventory index tables).
Public Methods
- execute()