Methods

__construct()

__construct(mixed $serializer, mixed $serializerOptions) 

Parameters

$serializer

mixed

string or SerializerAdapter

$serializerOptions

mixed

Serialize the given value so that it can be extracted by the hydrator.

extract(mixed $value) : mixed

Parameters

$value

mixed

The original value.

Returns

mixedReturns the value that should be extracted.

Get configuration options for instantiating a serializer adapter

getSerializerOptions() : mixed

Returns

mixed

Unserialize the given value so that it can be hydrated by the hydrator.

hydrate(mixed $value) : mixed

Parameters

$value

mixed

The original value.

Returns

mixedReturns the value that should be hydrated.

Set configuration options for instantiating a serializer adapter

setSerializerOptions(mixed $serializerOptions) : \Zend\Stdlib\Hydrator\Strategy\SerializableStrategy

Parameters

$serializerOptions

mixed

Returns

 Properties

 

$serializer

$serializer : string | \Zend\Serializer\Adapter\AdapterInterface

 

$serializerOptions

$serializerOptions : array