Log in
Model

Get

Magento\Inventory\Model\Stock\Command\Get

What it does

This class retrieves a stock entity by its ID from the database.

Developers use this command when they need to fetch complete stock information for inventory management operations, such as displaying stock details or validating stock existence before performing operations.

It throws an exception if the requested stock doesn't exist.

Public Methods

  • execute()