Interface
StockCollectionInterface
Magento\CatalogInventory\Api\Data\StockCollectionInterface
What it does
This interface defines a collection container for Stock objects in Magento 2's inventory system.
Developers would use this when working with multiple stock records, such as retrieving search results or managing bulk stock operations.
Note that this interface is deprecated since version 100.3.0 and has been replaced by the Multi Source Inventory (MSI) system.
Public Methods
- getItems()
- setItems()