Repository
StockItemRepositoryInterface
Magento\CatalogInventory\Api\StockItemRepositoryInterface
What it does
This interface defines the contract for managing stock item data in Magento's inventory system.
Developers use it to save, retrieve, update, and delete stock items (product inventory records) through standardized CRUD operations.
Note that this interface is deprecated since Magento 2.3.0 and has been replaced by Multi Source Inventory (MSI).
Public Methods
- save()
- get()
- getList()
- delete()
- deleteById()