public function CompositeNamingStrategy::extract in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/zendframework/zend-hydrator/src/NamingStrategy/CompositeNamingStrategy.php \Zend\Hydrator\NamingStrategy\CompositeNamingStrategy::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/ CompositeNamingStrategy.php, line 44
Class
Namespace
Zend\Hydrator\NamingStrategyCode
public function extract($name) {
$strategy = isset($this->namingStrategies[$name]) ? $this->namingStrategies[$name] : $this->defaultNamingStrategy;
return $strategy
->extract($name);
}