Zum Inhalt springen

API reference / Quittio \ Core \ Validation

ValidationSubject

final readonly class in quittio/core

Quittio\Core\Validation\ValidationSubject · Source

What is validated: the calculated data and, where available, the generated XML and PDF.

Properties#

PropertyTypeDescription
$context readonlyValidationContext
$invoice readonlyInvoiceData
$pdf readonly?string
$syntax readonly?Syntax
$xml readonly?string

Methods#

MethodDescription
->__construct()
->withPdf()
->withXml()

__construct()#

public function __construct(
    InvoiceData $invoice,
    ValidationContext $context,
    ?string $xml = null,
    ?Syntax $syntax = null,
    ?string $pdf = null,
)
ParameterTypeDescription
$invoiceInvoiceData
$contextValidationContext
$xml?string = null
$syntax?Syntax = null
$pdf?string = null

withPdf()#

public function withPdf(string $pdf): self
ParameterTypeDescription
$pdfstring
Returns
self

withXml()#

public function withXml(string $xml, Syntax $syntax): self
ParameterTypeDescription
$xmlstring
$syntaxSyntax
Returns
self

Die Open-Core-Pakete stehen unter der MIT-Lizenz. Die rechtlichen Formulierungen der Länderpakete sind mit einer Steuerberatung abzustimmen.