You are here

public function CompositeNamingStrategy::hydrate in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/zendframework/zend-hydrator/src/NamingStrategy/CompositeNamingStrategy.php \Zend\Hydrator\NamingStrategy\CompositeNamingStrategy::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/CompositeNamingStrategy.php, line 56

Class

CompositeNamingStrategy

Namespace

Zend\Hydrator\NamingStrategy

Code

public function hydrate($name) {
  $strategy = isset($this->namingStrategies[$name]) ? $this->namingStrategies[$name] : $this->defaultNamingStrategy;
  return $strategy
    ->hydrate($name);
}