Log in
Interface

ValidatorResultInterface

Magento\Sales\Model\ValidatorResultInterface

What it does

This interface defines a contract for validator result objects in Magento's Sales module.

Developers use this to collect and retrieve validation error messages when validating sales-related entities like orders, invoices, or shipments.

It provides a standardized way to check if validation failed and access all validation messages.

Public Methods

  • addMessage()
  • hasMessages()
  • getMessages()