DeflateMarshaller
in package
implements
MarshallerInterface
Compresses values using gzdeflate().
Tags
Table of Contents
Interfaces
- MarshallerInterface
- Serializes/unserializes PHP values.
Properties
- $marshaller : mixed
Methods
- __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
$marshaller
private
mixed
$marshaller
Methods
__construct()
public
__construct(MarshallerInterface $marshaller) : mixed
Parameters
- $marshaller : MarshallerInterface
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