You are here

public function ArrayMapNamingStrategy::extract in Zircon Profile 8.0

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

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

Parameters

string $name The original name:

array $data (optional) The original data for context.:

Return value

mixed The extracted name

Overrides NamingStrategyInterface::extract

File

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

Class

ArrayMapNamingStrategy

Namespace

Zend\Hydrator\NamingStrategy

Code

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