Methods

Constructor

__construct(array $extractionMap) 

Parameters

$extractionMap

array

A map of string keys and values for symmetric translation of hydrated and extracted field names

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

extract(string $name) : mixed

Parameters

$name

string

The original name

Returns

mixedThe extracted name

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

hydrate(string $name) : mixed

Parameters

$name

string

The original name

Returns

mixedThe hydrated name

 Properties

 

$extractionMap

$extractionMap : string[]

 

$hydrationMap

$hydrationMap : string[]