Class CollectionStrategy

Summary

Fully Qualified Name: Laminas\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
$objectClassName

Returns:

extract()

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

Parameter Name Type Description
$value array The
$object

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
$data

Returns: object[] Returns the value that should be hydrated.

Top