Copied!

ValueSerializerInterface

ValueSerializerInterface.php : 11

Methods

publicdecode()

ValueSerializerInterface.php : 52

Decodes a string into PHP data.

public decode(string|null $data[, array<string|int, mixed> $context = [] ]) : array<string|int, mixed>|null

Parameters

Name Type Default value Description
$data string|null - -
$context array<string|int, mixed> [] -

Return values

array<string|int, mixed>|null

publicdenormalize()

ValueSerializerInterface.php : 32

Denormalize data into an object of the given class.

public denormalize(array<string|int, mixed>|null $data, string $valueClass[, array<string|int, mixed> $context = [] ]) : Value

Parameters

Name Type Default value Description
$data array<string|int, mixed>|null - -
$valueClass string - -
$context array<string|int, mixed> [] -

Return values

Value

publicencode()

ValueSerializerInterface.php : 42

Encode normalized data.

public encode(array<string|int, mixed>|null $data[, array<string|int, mixed> $context = [] ]) : string|null

Parameters

Name Type Default value Description
$data array<string|int, mixed>|null - -
$context array<string|int, mixed> [] -

Return values

string|null

publicnormalize()

ValueSerializerInterface.php : 21

Normalizes an object into a hash.

public normalize(Value $value[, array<string|int, mixed> $context = [] ]) : array<string|int, mixed>|null

Parameters

Name Type Default value Description
$value Value - -
$context array<string|int, mixed> [] -

Return values

array<string|int, mixed>|null