BusinessDocumentExporter
Serializes a {@see BusinessDocument} into a specific wire format (JSON-LD, UBL, PDF, HTML...).
Regulatory formats (UBL, Factur-X, Peppol...) are out of scope of this namespace for now — see JsonLdExporter for the only implementation currently provided, a trivial JSON-LD demonstration.
Tags
Table of Contents
Methods
- export() : string
- Serializes the given business document.
Methods
export()
Serializes the given business document.
public
export(BusinessDocument $document) : string
Parameters
- $document : BusinessDocument
-
The document to export.
Return values
string —The serialized representation of the document.