Model
OrderValidator
Magento\Sales\Model\Order\OrderValidator
What it does
This class validates Magento order entities by running them through a collection of validation rules.
Developers use this when they need to ensure an order meets specific business requirements before processing operations like saving, invoicing, or shipping.
It acts as a facade that delegates validation logic to the core validator service.
Public Methods
- validate()