public function getHydratorFor($objectClass)
    {
        if (! isset($this->hydratorInstances[$objectClass])) {

            $this->hydratorInstances[$objectClass] = $this->createHydratorFor($objectClass);
        }

        return $this->hydratorInstances[$objectClass];
    }
public function getHydratorFor($objectClass)
    {
        if (! isset($this->hydratorInstances[$objectClass])) {

            $this->hydratorInstances[$objectClass] = $this->createHydratorFor($objectClass);
        }

        return $this->hydratorInstances[$objectClass];
    }
public function getHydratorFor ( $ objectClass ) { if ( ! isset ( $ this -> hydratorInstances [ $ objectClass ] ) ) { $ this -> hydratorInstances [ $ objectClass ] = $ this -> createHydratorFor ( $ objectClass ) ; } return $ this -> hydratorInstances [ $ objectClass ] ; }
Factory method to get an hydrator instance or create an hydrator if no instance available.

@param $objectClass Object class to hydrate

@return AbstractHydrator
Factory method to get an hydrator instance or create an hydrator if no instance available .