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#
| 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