Class SerializableStrategy

Summary

Fully Qualified Name: Zend\Hydrator\Strategy\SerializableStrategy
Implements: StrategyInterface

Description

Methods

Name Description Defined By
__construct() SerializableStrategy
extract() Serialize the given value so that it can be extracted by the hydrator. SerializableStrategy
getSerializer() Get serializer SerializableStrategy
getSerializerOptions() Get configuration options for instantiating a serializer adapter SerializableStrategy
hydrate() Unserialize the given value so that it can be hydrated by the hydrator. SerializableStrategy
setSerializer() Set serializer SerializableStrategy
setSerializerOptions() Set configuration options for instantiating a serializer adapter SerializableStrategy

Method Details

__construct()

Parameter Name Type Description
$serializer mixed string
$serializerOptions mixed

Returns:

extract()

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

Parameter Name Type Description
$value mixed The

Returns: mixed Returns the value that should be extracted.

getSerializer()

Get serializer

Returns: \SerializerAdapter

getSerializerOptions()

Get configuration options for instantiating a serializer adapter

Returns: mixed

hydrate()

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

Parameter Name Type Description
$value mixed The

Returns: mixed Returns the value that should be hydrated.

setSerializer()

Set serializer

Parameter Name Type Description
$serializer string|\SerializerAdapter

Returns: \SerializableStrategy

setSerializerOptions()

Set configuration options for instantiating a serializer adapter

Parameter Name Type Description
$serializerOptions mixed

Returns: \SerializableStrategy

Top