mediatekformation

SerializerInterface

Tags
author

Jordi Boggiano j.boggiano@seld.be

Table of Contents

deserialize()  : object|array<string|int, 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 = [] ]) : object|array<string|int, mixed>
Parameters
$data : mixed
$type : string
$format : string
$context : array<string|int, mixed> = []
Return values
object|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

Return values
string

Search results