Interface

StockStatusCollectionInterface

Magento\CatalogInventory\Api\Data\StockStatusCollectionInterface

What it does

This interface defines a collection of stock status items for products in Magento 2's inventory system.

Developers use it to retrieve, set, and filter multiple stock status records (in-stock/out-of-stock information) through search criteria.

Note that this interface is deprecated since Magento 2.3.0 and has been replaced by the Multi Source Inventory (MSI) system.

Public Methods

  • getItems()
  • setItems()
  • getSearchCriteria()