Zend\Stdlib\Hydrator\Strategy\ClosureStrategy::hydrate
Converts the given value so that it can be hydrated by the hydrator.
Signature
public function hydrate(mixed
$value,
[array
$data = null] )
Parameters
$value
— mixed- The original value.
$data
— array- The whole data is optionally provided as context.
Returns
- mixed
- Returns the value that should be hydrated.