Oihana PHP System

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
author

Marc Alcaraz (eKameleon)

since
1.3.0

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
throws
JsonException
Return values
string

The serialized representation of the document.

On this page

Search results