Log in
Interface

InvoiceValidatorInterface

Magento\Sales\Model\Order\Invoice\InvoiceValidatorInterface

What it does

This interface defines a contract for validating invoice entities in Magento 2.

Developers use implementations of this interface to ensure invoices meet business rules and requirements before they are saved or processed.

It accepts an invoice object and an array of validators, returning validation results or throwing an exception if validation fails.

Public Methods

  • validate()