You are here

public function DelegatingHydrator::hydrate in Zircon Profile 8

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

Hydrate $object with the provided $data.

Parameters

array $data:

object $object:

Return value

object

Overrides HydrationInterface::hydrate

File

vendor/zendframework/zend-hydrator/src/DelegatingHydrator.php, line 34

Class

DelegatingHydrator

Namespace

Zend\Hydrator

Code

public function hydrate(array $data, $object) {
  return $this
    ->getHydrator($object)
    ->hydrate($data, $object);
}