public function AggregateHydrator::hydrate in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/zendframework/zend-hydrator/src/Aggregate/AggregateHydrator.php \Zend\Hydrator\Aggregate\AggregateHydrator::hydrate()
Hydrate $object with the provided $data.
Parameters
array $data:
object $object:
Return value
object
Overrides HydrationInterface::hydrate
File
- vendor/
zendframework/ zend-hydrator/ src/ Aggregate/ AggregateHydrator.php, line 55
Class
- AggregateHydrator
- Aggregate hydrator that composes multiple hydrators via events
Namespace
Zend\Hydrator\AggregateCode
public function hydrate(array $data, $object) {
$event = new HydrateEvent($this, $object, $data);
$this
->getEventManager()
->trigger($event);
return $event
->getHydratedObject();
}