Class MapNamingStrategy

Summary

Fully Qualified Name: Zend\Hydrator\NamingStrategy\MapNamingStrategy
Implements: NamingStrategyInterface

Description

Methods

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

Method Details

__construct()

Initialize.

Parameter Name Type Description
$mapping array Map
$reverse array Reverse

Returns:

extract()

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

Parameter Name Type Description
$name string The

Returns: mixed The extracted name

hydrate()

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

Parameter Name Type Description
$name string The

Returns: mixed The hydrated name

Top