Documentation

DefaultMarshaller
in package
implements MarshallerInterface

Serializes/unserializes values using igbinary_serialize() if available, serialize() otherwise.

Tags
author

Nicolas Grekas p@tchwork.com

Interfaces, Classes and Traits

MarshallerInterface
Serializes/unserializes PHP values.

Table of Contents

$throwOnSerializationFailure  : mixed
$useIgbinarySerialize  : mixed
__construct()  : mixed
marshall()  : array<string|int, mixed>
Serializes a list of values.
unmarshall()  : mixed
Unserializes a single value and throws an exception if anything goes wrong.

Properties

Methods

__construct()

public __construct([bool|null $useIgbinarySerialize = null ][, bool $throwOnSerializationFailure = false ]) : mixed
Parameters
$useIgbinarySerialize : bool|null = null
$throwOnSerializationFailure : bool = false
Return values
mixed

marshall()

Serializes a list of values.

public marshall(array<string|int, mixed> $values, array<string|int, mixed>|null &$failed) : array<string|int, mixed>
Parameters
$values : array<string|int, mixed>
$failed : array<string|int, mixed>|null
Return values
array<string|int, mixed>

unmarshall()

Unserializes a single value and throws an exception if anything goes wrong.

public unmarshall(string $value) : mixed
Parameters
$value : string
Return values
mixed

Search results