SerializerInterface
in
Tags
Table of Contents
Methods
- deserialize() : mixed
- Deserializes data into the given type.
- serialize() : string
- Serializes data in the appropriate format.
Methods
deserialize()
Deserializes data into the given type.
public
deserialize(mixed $data, string $type, string $format[, array<string|int, mixed> $context = [] ]) : mixed
Parameters
- $data : mixed
- $type : string
- $format : string
- $context : array<string|int, mixed> = []
serialize()
Serializes data in the appropriate format.
public
serialize(mixed $data, string $format[, array<string|int, mixed> $context = [] ]) : string
Parameters
- $data : mixed
-
Any data
- $format : string
-
Format name
- $context : array<string|int, mixed> = []
-
Options normalizers/encoders have access to