Interface

StockStatusCriteriaInterface

Magento\CatalogInventory\Api\StockStatusCriteriaInterface

What it does

This interface defines criteria methods for filtering and retrieving stock status information in Magento 2's inventory system.

Developers would use this to query stock status data by scope, products, or quantity thresholds when checking inventory availability.

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

Public Methods

  • addCriteria()
  • setScopeFilter()
  • setProductsFilter()
  • setQtyFilter()