public function setHydrator($type, Hydrator\HydratorInterface $hydrator) { $this->hydrators[$type] = $hydrator; }