API reference / Quittio \ Core \ Validation \ Rules
FieldMatrixRule
final class in quittio/core · implements Rule
Quittio\Core\Validation\Rules\FieldMatrixRule · Source
Mandatory and allowed fields of the selected profile (level L2), derived from the mapping attributes of the data model and the profile's additional requirements.
Constants#
| Constant | Value | Description |
|---|---|---|
CODES | ['QUITTIO-PROFILE-REQUIRED', 'QUITTIO-PROFILE-NOT-ALLOWED', 'QUITTIO-PROFILE-EXTENDED-ONLY', 'QUITTIO-PROFILE-XRECHNUNG-EXTENSION-ONLY', 'QUITTIO-PROFILE-SUBLIN … | The codes of the findings this rule reports. |
Methods#
| Method | Description |
|---|---|
->check() | |
->code() | |
->level() |
check()#
public function check(InvoiceData $invoice, ValidationContext $context): iterable| Parameter | Type | Description |
|---|---|---|
$invoice | InvoiceData | |
$context | ValidationContext |
- Returns
iterable
code()#
public function code(): string- Returns
string
level()#
public function level(): ValidationLevel- Returns
ValidationLevel