You are here

public function ArrayMapNamingStrategy::__construct 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::__construct()

Constructor

Parameters

array $extractionMap A map of string keys and values for symmetric translation of hydrated: and extracted field names

File

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

Class

ArrayMapNamingStrategy

Namespace

Zend\Hydrator\NamingStrategy

Code

public function __construct(array $extractionMap) {
  $this->extractionMap = $extractionMap;
  $this->hydrationMap = array_flip($extractionMap);
}