Interface
OrderValidatorInterface
Magento\Sales\Model\Order\OrderValidatorInterface
What it does
This interface defines a contract for validating Magento order entities.
Developers implement this interface to create custom order validators that run business logic checks before order operations like creation, updates, or state changes.
The validate method accepts an order and array of validators, returning validation results or throwing exceptions on failure.
Public Methods
- validate()