\Einvoicing\Readers\UblReader¶
import()
¶
Import invoice
public import($document: string): \Einvoicing\Invoice
Parameters
$document
:string
— Document contents
Returns
\Einvoicing\Invoice
— Invoice instance
Throws
\InvalidArgumentException
if failed to parse XML
registerPreset()
¶
Register additional preset
public registerPreset($classname: string): \Einvoicing\Readers\UblReader
Parameters
$classname
:string
— Preset classname
Returns
\Einvoicing\Readers\UblReader
— This instance
Throws
\InvalidArgumentException
if not a valid preset classname