Interface

StockCriteriaInterface

Magento\CatalogInventory\Api\StockCriteriaInterface

What it does

This interface defines the contract for building search criteria when querying stock/inventory data in Magento 2.

Developers would use implementations of this interface to filter and retrieve stock information by scope (store/website).

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

Public Methods

  • addCriteria()
  • setScopeFilter()