Class ZugferdDocument - horstoeko/zugferd GitHub Wiki
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 | :x: |
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 | :x: |
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