public function StrategyChain::__construct in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/zendframework/zend-hydrator/src/Strategy/StrategyChain.php \Zend\Hydrator\Strategy\StrategyChain::__construct()
Constructor
Parameters
array|Traversable $extractionStrategies:
File
- vendor/
zendframework/ zend-hydrator/ src/ Strategy/ StrategyChain.php, line 36
Class
Namespace
Zend\Hydrator\StrategyCode
public function __construct($extractionStrategies) {
$extractionStrategies = ArrayUtils::iteratorToArray($extractionStrategies);
$this->extractionStrategies = array_map(function (StrategyInterface $strategy) {
// this callback is here only to ensure type-safety
return $strategy;
}, $extractionStrategies);
$this->hydrationStrategies = array_reverse($extractionStrategies);
}