ValueSerializerInterface
ValueSerializerInterface.php
:
11
Interface
Methods¶
decode()
¶
ValueSerializerInterface.php
:
52
Decodes a string into PHP data.
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $data | string|null | - | - |
| $context | array<string|int, mixed> | [] | - |
Return values
array<string|int, mixed>|null
denormalize()
¶
ValueSerializerInterface.php
:
32
Denormalize data into an object of the given class.
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $data | array<string|int, mixed>|null | - | - |
| $valueClass | string | - | - |
| $context | array<string|int, mixed> | [] | - |
Return values
encode()
¶
ValueSerializerInterface.php
:
42
Encode normalized data.
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $data | array<string|int, mixed>|null | - | - |
| $context | array<string|int, mixed> | [] | - |
Return values
string|null
normalize()
¶
ValueSerializerInterface.php
:
21
Normalizes an object into a hash.
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $value | Value | - | - |
| $context | array<string|int, mixed> | [] | - |
Return values
array<string|int, mixed>|null