API reference / Quittio \ Country \ AT \ EbInterface
EbInterfaceReader
final class in quittio/country-at · implements FormatReader
Quittio\Country\AT\EbInterface\EbInterfaceReader · Source
Reads ebInterface 6.0 and 6.1 invoices into the data model; CountryAT::readers() registers it, so that Quittio::read() and validateFile() accept them. The mapping is that of EbInterfaceWriter in reverse; the result has the syntax "ebinterface" and no profile.
Constants#
| Constant | Value | Description |
|---|---|---|
NAMESPACES | ['http://www.ebinterface.at/schema/6p1/', 'http://www.ebinterface.at/schema/6p0/'] | The namespaces of the versions read. |
SYNTAX | 'ebinterface' |
Methods#
| Method | Description |
|---|---|
->canRead() | |
->read() |
canRead()#
public function canRead(DOMDocument $document): bool| Parameter | Type | Description |
|---|---|---|
$document | DOMDocument |
- Returns
bool
read()#
public function read(DOMDocument $document, string $xml): ReadResult| Parameter | Type | Description |
|---|---|---|
$document | DOMDocument | |
$xml | string |
- Returns
ReadResult