You are here

public function SerializableStrategy::hydrate in Zircon Profile 8

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

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

Parameters

mixed $value The original value.:

Return value

mixed Returns the value that should be hydrated.

Overrides StrategyInterface::hydrate

File

vendor/zendframework/zend-hydrator/src/Strategy/SerializableStrategy.php, line 59

Class

SerializableStrategy

Namespace

Zend\Hydrator\Strategy

Code

public function hydrate($value) {
  $serializer = $this
    ->getSerializer();
  return $serializer
    ->unserialize($value);
}