API reference / Quittio \ Core \ Reading
ReadResult
final readonly class in quittio/core
Quittio\Core\Reading\ReadResult · Source
Result of reading an e-invoice: the parsed data, the totals declared in the document (kept unchanged for comparison), findings and the raw input.
Properties#
| Property | Type | Description |
|---|---|---|
$data readonly | InvoiceData | |
$declaredTotals readonly | ?Totals | |
$declaredVatBreakdown readonly | list<VatBreakdown> | |
$embeddedFilename readonly | ?string | |
$findings readonly | list<ValidationMessage> | |
$profile readonly | ?string | |
$raw readonly | ?string | |
$specificationId readonly | ?string | |
$syntax readonly | string | |
$xml readonly | string |
Methods#
| Method | Description |
|---|---|
->__construct() | |
->hasFindings() |
__construct()#
public function __construct(
InvoiceData $data,
string $syntax,
?string $specificationId,
?string $profile,
?Totals $declaredTotals,
list<VatBreakdown> $declaredVatBreakdown,
list<ValidationMessage> $findings,
string $xml,
?string $raw = null,
?string $embeddedFilename = null,
)| Parameter | Type | Description |
|---|---|---|
$data | InvoiceData | |
$syntax | string | |
$specificationId | ?string | |
$profile | ?string | |
$declaredTotals | ?Totals | |
$declaredVatBreakdown | list<VatBreakdown> | |
$findings | list<ValidationMessage> | |
$xml | string | |
$raw | ?string = null | |
$embeddedFilename | ?string = null |
hasFindings()#
public function hasFindings(): bool- Returns
bool