public function StrategyChain::extract in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/zendframework/zend-hydrator/src/Strategy/StrategyChain.php \Zend\Hydrator\Strategy\StrategyChain::extract()
Converts the given value so that it can be extracted by the hydrator.
Parameters
mixed $value The original value.:
object $object (optional) The original object for context.:
Return value
mixed Returns the value that should be extracted.
Overrides StrategyInterface::extract
File
- vendor/
zendframework/ zend-hydrator/ src/ Strategy/ StrategyChain.php, line 53
Class
Namespace
Zend\Hydrator\StrategyCode
public function extract($value) {
foreach ($this->extractionStrategies as $strategy) {
$value = $strategy
->extract($value);
}
return $value;
}