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#
| Property | Type | Description |
|---|---|---|
$context readonly | ValidationContext | |
$invoice readonly | InvoiceData | |
$pdf readonly | ?string | |
$syntax readonly | ?Syntax | |
$xml readonly | ?string |
Methods#
| Method | Description |
|---|---|
->__construct() | |
->withPdf() | |
->withXml() |
__construct()#
public function __construct(
InvoiceData $invoice,
ValidationContext $context,
?string $xml = null,
?Syntax $syntax = null,
?string $pdf = null,
)| Parameter | Type | Description |
|---|---|---|
$invoice | InvoiceData | |
$context | ValidationContext | |
$xml | ?string = null | |
$syntax | ?Syntax = null | |
$pdf | ?string = null |
withPdf()#
public function withPdf(string $pdf): self| Parameter | Type | Description |
|---|---|---|
$pdf | string |
- Returns
self
withXml()#
public function withXml(string $xml, Syntax $syntax): self| Parameter | Type | Description |
|---|---|---|
$xml | string | |
$syntax | Syntax |
- Returns
self