Skip to content

API reference / Quittio \ Core \ Reading

FormatReader

interface in quittio/core

Quittio\Core\Reading\FormatReader · Source

Reads one XML invoice format into the data model.

Methods#

MethodDescription
->canRead()
->read()

canRead()#

public function canRead(DOMDocument $document): bool
ParameterTypeDescription
$documentDOMDocument
Returns
bool

read()#

public function read(DOMDocument $document, string $xml): ReadResult
ParameterTypeDescription
$documentDOMDocument
$xmlstring
Returns
ReadResult

The open core packages are MIT licensed. The legal wording of the country packs must be confirmed by a tax adviser.