PHPValueNormalizer
Read onlyYes
FinalYes
Properties
- $attributePrefix : string
- $dateTimeFormat : string
- $listElementName : string
- $mapElementKeyName : string
- $mapElementName : string
- $mapElementValueName : string
Methods
- __construct() : mixed
- normalize() : XMLNode|XMLAttribute
Properties
$attributePrefix
public
string
$attributePrefix
= '_'
$dateTimeFormat
public
string
$dateTimeFormat
= 'Y-m-d\TH:i:s.uP'
$listElementName
public
string
$listElementName
= 'element'
$mapElementKeyName
public
string
$mapElementKeyName
= 'key'
$mapElementName
public
string
$mapElementName
= 'element'
$mapElementValueName
public
string
$mapElementValueName
= 'value'
Methods
__construct()
public
__construct(Caster $caster[, string $attributePrefix = '_' ][, string $dateTimeFormat = 'Y-m-dTH:i:s.uP' ][, string $listElementName = 'element' ][, string $mapElementName = 'element' ][, string $mapElementKeyName = 'key' ][, string $mapElementValueName = 'value' ]) : mixed
Parameters
- $caster : Caster
- $attributePrefix : string = '_'
- $dateTimeFormat : string = 'Y-m-dTH:i:s.uP'
- $listElementName : string = 'element'
- $mapElementName : string = 'element'
- $mapElementKeyName : string = 'key'
- $mapElementValueName : string = 'value'
normalize()
public
normalize(string $name, Type<string|int, mixed> $type, mixed $value) : XMLNode|XMLAttribute
Parameters
- $name : string
- $type : Type<string|int, mixed>
- $value : mixed