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#
| Property | Type | Description |
|---|---|---|
$invoice readonly | InvoiceData | |
$result readonly | ValidationResult |
Methods#
| Method | Description |
|---|---|
->__construct() |
__construct()#
public function __construct(InvoiceData $invoice, ValidationResult $result)| Parameter | Type | Description |
|---|---|---|
$invoice | InvoiceData | |
$result | ValidationResult |