StockRegistryProviderInterface
Magento\CatalogInventory\Model\Spi\StockRegistryProviderInterface
What it does
This interface defines methods for retrieving inventory-related data in Magento 2, including stock information, stock items, and stock status for products within specific scopes.
Developers would implement this interface to create custom providers that fetch inventory data from different sources or storage mechanisms.
Note that this interface is deprecated and replaced by the Multi Source Inventory (MSI) system.
Public Methods
- getStock()
- getStockItem()
- getStockStatus()