Skip to content

Class ZugferdDocument

HorstOeko edited this page Dec 15, 2024 · 17 revisions

Summary

Class representing the document basics

Methods

getProfileId

Summary

Returns the selected profile id

Signature

public function getProfileId(): int
{
}

Returns

Returns a value of type int

getProfileDefinition

Summary

Returns the profile definition

Signature

public function getProfileDefinition(): array
{
}

Returns

Returns a value of type array

getProfileDefinitionParameter

Summary

Get a parameter from profile definition

Signature

public function getProfileDefinitionParameter(string $parameterName): mixed
{
}

Parameters

Name Type Allows Null Description
parameterName string

Returns

Returns a value of type mixed

deserialize

Summary

Deserialize XML content to internal invoice object

Signature

public function deserialize(
  mixed $xmlContent,
): \horstoeko\zugferd\entities\basic\rsm\CrossIndustryInvoice|\horstoeko\zugferd\entities\basicwl\rsm\CrossIndustryInvoice|\horstoeko\zugferd\entities\en16931\rsm\CrossIndustryInvoice|\horstoeko\zugferd\entities\extended\rsm\CrossIndustryInvoice|\horstoeko\zugferd\entities\minimum\rsm\CrossIndustryInvoice
{
}

Parameters

Name Type Allows Null Description
xmlContent mixed

Returns

Returns a value of type \horstoeko\zugferd\entities\basic\rsm\CrossIndustryInvoice|\horstoeko\zugferd\entities\basicwl\rsm\CrossIndustryInvoice|\horstoeko\zugferd\entities\en16931\rsm\CrossIndustryInvoice|\horstoeko\zugferd\entities\extended\rsm\CrossIndustryInvoice|\horstoeko\zugferd\entities\minimum\rsm\CrossIndustryInvoice

serializeAsXml

Summary

Serialize internal invoice object as XML

Signature

public function serializeAsXml(): string
{
}

Returns

Returns a value of type string

serializeAsJson

Summary

Serialize internal invoice object as JSON

Signature

public function serializeAsJson(): string
{
}

Returns

Returns a value of type string

Clone this wiki locally