You are here

public function ClosureStrategy::hydrate in Zircon Profile 8

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

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

Parameters

mixed $value The original value.:

array $data The whole data is optionally provided as context.:

Return value

mixed Returns the value that should be hydrated.

Overrides StrategyInterface::hydrate

File

vendor/zendframework/zend-hydrator/src/Strategy/ClosureStrategy.php, line 107

Class

ClosureStrategy

Namespace

Zend\Hydrator\Strategy

Code

public function hydrate($value, $data = null) {
  $func = $this->hydrateFunc;
  return $func($value, $data);
}