XRechnungBuilder
in package
Bridges the typed MappingData value-object graph to the lifted L3 XRechnungEntity so the existing Generator pipeline can consume MappingData without rewriting the placeholder substitution layer.
Per architecture section 6.1: pure function. Same input, same output. No filesystem I/O, no clock reads, no global state. Deterministic.
v1.0 scope: transcribes fields from the VO graph into the entity's setter-based shape and picks the right L3 invoiceType string ("invoice", "caution", "cancel") that drives template selection in the Generator.
The Generator transition is intentionally additive: existing callers that construct XRechnungEntity directly continue to work. New callers should prefer MappingData::standardInvoice(...) etc. and pipe through this Builder. A future commit may deprecate the direct setter pattern.
Table of Contents
Methods
Methods
buildEntity()
public
static buildEntity(MappingData $data) : XRechnungEntity
Parameters
- $data : MappingData