Log in
Model

IsNumericValue

Magento\Inventory\Model\Validators\IsNumericValue

What it does

This validator class checks if a given value is numeric and returns validation errors if it's not.

Developers use this when validating inventory-related data fields (like quantities or stock levels) to ensure they contain only numeric values before saving to the database.

It's part of Magento's MSI (Multi-Source Inventory) validation layer.

Public Methods

  • execute()