Log in
Model

QuantityValidator

Magento\Inventory\Model\SourceItem\Validator\QuantityValidator

What it does

This validator ensures that the quantity value of a source item is numeric and valid.

Developers use this class when validating inventory source item data before saving, typically as part of the inventory management validation chain to prevent invalid quantity values from being stored in the system.

Public Methods

  • validate()