Skip to content

API reference / Quittio \ Laravel \ Events

InvoiceValidated

final readonly class in quittio/laravel

Quittio\Laravel\Events\InvoiceValidated · Source

Dispatched after a render run whose validation did not block it, before InvoiceRendered. $result is the validation of the main (first) format: in mode "error" it has no errors (warnings may be present unless validation.block_on_warnings), in mode "warn" it may contain errors, so check $result->isValid(). Not dispatched in mode "off" (nothing was validated) and not when validation blocked the run (see InvoiceValidationFailed).

Properties#

PropertyTypeDescription
$invoice readonlyInvoiceData
$result readonlyValidationResult

Methods#

MethodDescription
->__construct()

__construct()#

public function __construct(InvoiceData $invoice, ValidationResult $result)
ParameterTypeDescription
$invoiceInvoiceData
$resultValidationResult

The open core packages are MIT licensed. The legal wording of the country packs must be confirmed by a tax adviser.