public function ClosureStrategy::hydrate in Zircon Profile 8.0
Same name and namespace in other branches
- 8 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
Namespace
Zend\Hydrator\StrategyCode
public function hydrate($value, $data = null) {
$func = $this->hydrateFunc;
return $func($value, $data);
}