package Default

 Methods

__construct()

__construct(mixed $serializer, mixed $serializerOptions = null

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
inherited_from \Zend\Stdlib\Hydrator\Strategy\StrategyInterface::extract()

Parameters

$value

mixed

The original value.

Returns

mixedReturns the value that should be extracted.

Get serializer

getSerializer() : \Zend\Serializer\Adapter\AdapterInterface

Returns

\Zend\Serializer\Adapter\AdapterInterface

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
inherited_from \Zend\Stdlib\Hydrator\Strategy\StrategyInterface::hydrate()

Parameters

$value

mixed

The original value.

Returns

mixedReturns the value that should be hydrated.

Set serializer

setSerializer(string|\Zend\Serializer\Adapter\AdapterInterface $serializer) : \Zend\Stdlib\Hydrator\Strategy\SerializableStrategy

Parameters

$serializer

string\Zend\Serializer\Adapter\AdapterInterface

Returns

\Zend\Stdlib\Hydrator\Strategy\SerializableStrategy

Set configuration options for instantiating a serializer adapter

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

Parameters

$serializerOptions

mixed

Returns

\Zend\Stdlib\Hydrator\Strategy\SerializableStrategy

 Properties

 

$serializer

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

Default

 

$serializerOptions

$serializerOptions : array

Default

array()