GetInterface
Magento\Inventory\Model\Stock\Command\GetInterface
What it does
This interface defines a command for retrieving Stock data by its ID in Magento's Multi-Source Inventory (MSI) system.
Developers would implement this interface to customize how stock records are fetched from the database, typically when extending inventory management functionality.
It serves as an SPI (Service Provider Interface) that the StockRepository uses internally to handle get operations.
Public Methods
- execute()