VisitorAdapterNormalizer
VisitorAdapterNormalizer.php
:
19
Final
Implements
NormalizerInterface, NormalizerAwareInterface
Uses
NormalizerAwareTrait
Constants¶
ENCODER_CONTEXT ¶
VisitorAdapterNormalizer.php
:
25
|
|
Methods¶
__construct()
¶
VisitorAdapterNormalizer.php
:
27
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$jsonEncoder | EncoderInterface | - | - |
$xmlEncoder | EncoderInterface | - | - |
$valueObjectVisitorResolver | ValueObjectVisitorResolverInterface | - | - |
getSupportedTypes()
¶
VisitorAdapterNormalizer.php
:
164
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$format | string|null | - | - |
Return values
array<string|int, mixed>
normalize()
¶
VisitorAdapterNormalizer.php
:
39
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$object | mixed | - | - |
$format | string|null | null | - |
$context | array<string, mixed> | [] | - |
Return values
array<string|int, mixed>|bool|string|int|float|null|ArrayObject
Tags
supportsNormalization()
¶
VisitorAdapterNormalizer.php
:
55
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$data | mixed | - | - |
$format | string|null | null | - |
$context | array<string, mixed> | [] | - |
Return values
bool