Interface

StockInterface

Magento\CatalogInventory\Api\Data\StockInterface

What it does

This interface defines the data structure for inventory stock entities in Magento 2, representing a physical or virtual warehouse location.

Developers use this when working with inventory management to get or set stock identifiers and names.

Note that this interface is deprecated as of version 100.3.0 and has been replaced by the Multi Source Inventory (MSI) system for more flexible inventory management.

Public Methods

  • getStockId()
  • setStockId()
  • getStockName()
  • setStockName()
  • getExtensionAttributes()
  • setExtensionAttributes()