Aggregate hydrator that composes multiple hydrators via events

package Default

 Methods

Attaches the provided hydrator to the list of hydrators to be used while hydrating/extracting data

add(\Zend\Stdlib\Hydrator\HydratorInterface $hydrator, integer $priority = self::DEFAULT_PRIORITY

Parameters

$hydrator

\Zend\Stdlib\Hydrator\HydratorInterface

$priority

integer

{@inheritDoc}

extract($object) 

Parameters

$object

{@inheritDoc}

getEventManager() 

{@inheritDoc}

hydrate(array $data, $object) 

Parameters

$data

$object

Inject an EventManager instance

setEventManager(\Zend\EventManager\EventManagerInterface $eventManager) 
inherited_from \Zend\EventManager\EventManagerAwareInterface::setEventManager()

Parameters

$eventManager

 Properties

 

$eventManager

$eventManager : \Zend\EventManager\EventManagerInterface | null

Default

 Constants

 

DEFAULT_PRIORITY

DEFAULT_PRIORITY = 1