Model

Status

Magento\CatalogInventory\Model\Stock\Status

What it does

This class represents the stock status of a product, tracking whether a product is in stock or out of stock along with its quantity.

Developers use this model to check product availability, retrieve stock information for specific products and websites, and manage inventory status data throughout the catalog and checkout processes.

Public Methods

  • getProductId()
  • getWebsiteId()
  • getStockId()
  • getQty()
  • getStockStatus()
  • getStockItem()
  • setProductId()
  • setWebsiteId()
  • setStockId()
  • setQty()
  • setStockStatus()
  • getExtensionAttributes()
  • setExtensionAttributes()