HybridConformance

Backed enum for the conformance level of the XML payload of a hybrid electronic document, written as the ConformanceLevel XMP property by MetaInfo::setFacturX(). The backing value is the literal property value.

Namespace: Com\Tecnick\Pdf

Backing type: string

File: HybridConformance.php line 41

Backed enum for the conformance level of the XML payload of a hybrid electronic document, written as the ConformanceLevel XMP property by MetaInfo::setFacturX(). The backing value is the literal property value.

Not every level is defined by every profile: MINIMUM, BASIC WL and XRECHNUNG belong to Factur-X and ZUGFeRD 2, while COMFORT belongs to ZUGFeRD 1.

Tags

Cases

Minimum

File: HybridConformance.php line 43

BasicWl

File: HybridConformance.php line 45

Basic

File: HybridConformance.php line 47

Comfort

File: HybridConformance.php line 49

En16931

File: HybridConformance.php line 51

Extended

File: HybridConformance.php line 53

XRechnung

File: HybridConformance.php line 55

Methods

fromLoose()

File: HybridConformance.php line 68

public static fromLoose(string|self $value) : self

Accepts the property value (case-insensitive, whitespace ignored, so both ‘EN 16931’ and ’en16931’ resolve) or an enum instance (returned unchanged). Unknown values throw.

Parameters

  • $value : string|self: Conformance level or enum case.

Tags

  • throws: Exception if the value is not a known conformance level.

Return values

self