Log in
Interface

SaveInterface

Magento\Inventory\Model\Stock\Command\SaveInterface

What it does

This is a Service Provider Interface (SPI) that defines the contract for saving Stock data in Magento's Multi-Source Inventory system.

Developers would implement this interface to customize how stock records are persisted to the database, such as adding custom validation or business logic before saving.

The StockRepository proxies save operations to implementations of this interface.

Public Methods

  • execute()