You are here

protected function DelegatingHydrator::getHydrator in Zircon Profile 8.0

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

Gets hydrator of an object

Parameters

object $object:

Return value

HydratorInterface

File

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

Class

DelegatingHydrator

Namespace

Zend\Hydrator

Code

protected function getHydrator($object) {
  return $this->hydrators
    ->get(get_class($object));
}