XMLEncoder implements Encoder
FinalYes
Tags
Interfaces
- Encoder
Methods
- __construct() : mixed
- decode() : array<string|int, mixed>
- encode() : array<string|int, mixed>
Methods
__construct()
public
__construct([XMLWriter|null $xmlWriter = null ][, string $attributePrefix = '_' ][, string $dateTimeFormat = 'Y-m-d\TH:i:s.uP' ][, string $dateFormat = 'Y-m-d' ][, string $listElementName = 'element' ][, string $mapElementName = 'element' ][, string $mapElementKeyName = 'key' ][, string $mapElementValueName = 'value' ][, string $rowElementName = 'row' ]) : mixed
Parameters
- $xmlWriter : XMLWriter|null = null
- $attributePrefix : string = '_'
- $dateTimeFormat : string = 'Y-m-d\TH:i:s.uP'
- $dateFormat : string = 'Y-m-d'
- $listElementName : string = 'element'
- $mapElementName : string = 'element'
- $mapElementKeyName : string = 'key'
- $mapElementValueName : string = 'value'
- $rowElementName : string = 'row'
decode()
public
decode(array<string|int, mixed> $batch) : array<string|int, mixed>
Parameters
- $batch : array<string|int, mixed>
Return values
array<string|int, mixed>encode()
public
encode(array<string|int, mixed> $batch) : array<string|int, mixed>
Parameters
- $batch : array<string|int, mixed>