Repository

StockStatusRepositoryInterface

Magento\CatalogInventory\Api\StockStatusRepositoryInterface

What it does

This repository interface manages CRUD operations for product stock status data in Magento 2's inventory system.

Developers use it to retrieve, save, or delete stock status information for products, though it's deprecated in favor of the Multi Source Inventory (MSI) system introduced in Magento 2.3.0.

It provides methods to get individual stock statuses, search collections, and persist changes.

Public Methods

  • save()
  • get()
  • getList()
  • delete()