Class CollectionStrategy

Summary

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

Description

Methods

Name Description Defined By
__construct() CollectionStrategy
extract() Converts the given value so that it can be extracted by the hydrator. CollectionStrategy
hydrate() Converts the given value so that it can be hydrated by the hydrator. CollectionStrategy

Method Details

__construct()

Parameter Name Type Description
$objectHydrator \HydratorInterface
$objectClassName string

Returns:

extract()

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

Parameter Name Type Description
$value array The

Returns: mixed Returns the value that should be extracted.

hydrate()

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

Parameter Name Type Description
$value array The

Returns: mixed Returns the value that should be hydrated.

Top