You are here

public function ArrayMapNamingStrategy::hydrate in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/zendframework/zend-hydrator/src/NamingStrategy/ArrayMapNamingStrategy.php \Zend\Hydrator\NamingStrategy\ArrayMapNamingStrategy::hydrate()

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

Parameters

string $name The original name:

object $object (optional) The original object for context.:

Return value

mixed The hydrated name

Overrides NamingStrategyInterface::hydrate

File

vendor/zendframework/zend-hydrator/src/NamingStrategy/ArrayMapNamingStrategy.php, line 39

Class

ArrayMapNamingStrategy

Namespace

Zend\Hydrator\NamingStrategy

Code

public function hydrate($name) {
  return isset($this->hydrationMap[$name]) ? $this->hydrationMap[$name] : $name;
}