FieldMatrixRule
in package
implements
Rule
FinalYes
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.
Table of Contents
Interfaces
- Rule
- A business or plausibility rule checked in PHP (levels L1 to L3 and L7).
Constants
- CODES : array<string|int, mixed> = ['QUITTIO-PROFILE-REQUIRED', 'QUITTIO-PROFILE-N...
- The codes of the findings this rule reports.
Methods
- check() : iterable<string|int, ValidationMessage>
- code() : string
- Official rule code (e.g. BR-CO-25, BR-DE-1) or a package code (QUITTIO-…).
- level() : ValidationLevel
Constants
CODES
The codes of the findings this rule reports.
public
array<string|int, mixed>
CODES
= ['QUITTIO-PROFILE-REQUIRED', 'QUITTIO-PROFILE-NOT-ALLOWED', 'QUITTIO-PROFILE-EXTENDED-ONLY', 'QUITTIO-PROFILE-XRECHNUNG-EXTENSION-ONLY', 'QUITTIO-PROFILE-SUBLINES']
Methods
check()
public
check(InvoiceData $invoice, ValidationContext $context) : iterable<string|int, ValidationMessage>
Parameters
- $invoice : InvoiceData
- $context : ValidationContext
Return values
iterable<string|int, ValidationMessage>code()
Official rule code (e.g. BR-CO-25, BR-DE-1) or a package code (QUITTIO-…).
public
code() : string
Return values
stringlevel()
public
level() : ValidationLevel