class Serializer implements SerializerInterface (View source)

Serialize and deserialize input.

Methods

__construct(array $options = [])

No description

mixed
decode(mixed $value)

Deserialize the value.

mixed
encode(mixed $value)

Serialize the value.

static Serializer
make(array $options = [])

No description

Details

__construct(array $options = [])

No description

Parameters

array $options

Options to pass to the deserializer.

final mixed decode(mixed $value)

Deserialize the value.

Parameters

mixed $value

The value to decode.

Return Value

mixed

final mixed encode(mixed $value)

Serialize the value.

Parameters

mixed $value

The value to encode.

Return Value

mixed

static Serializer make(array $options = [])

No description

Parameters

array $options

Options to pass to the deserializer.

Return Value

Serializer