public function SerializableStrategy::extract in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/zendframework/zend-hydrator/src/Strategy/SerializableStrategy.php \Zend\Hydrator\Strategy\SerializableStrategy::extract()
Serialize the given value so that it can be extracted by the hydrator.
Parameters
mixed $value The original value.:
Return value
mixed Returns the value that should be extracted.
Overrides StrategyInterface::extract
File
- vendor/
zendframework/ zend-hydrator/ src/ Strategy/ SerializableStrategy.php, line 47
Class
Namespace
Zend\Hydrator\StrategyCode
public function extract($value) {
$serializer = $this
->getSerializer();
return $serializer
->serialize($value);
}