JsonLdExporter implements BusinessDocumentExporter
A trivial {@see BusinessDocumentExporter} that serializes a document to its JSON-LD representation, via {@see \org\schema\traits\ThingTrait::jsonSerialize()} (inherited through `Intangible`/`Thing`).
Demonstration purposes only — no UBL/Factur-X/Peppol mapping, no PDF/HTML rendering ; those regulatory/presentation formats are out of scope of this namespace for now.
Tags
Table of Contents
Interfaces
- BusinessDocumentExporter
- Serializes a {@see BusinessDocument} into a specific wire format (JSON-LD, UBL, PDF, HTML...).
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.
Tags
Return values
string —The serialized representation of the document.