'Zend\Stdlib\Hydrator\DelegatingHydrator', ); /** * Default set of adapters * * @var array */ protected $invokableClasses = array( 'arrayserializable' => 'Zend\Stdlib\Hydrator\ArraySerializable', 'classmethods' => 'Zend\Stdlib\Hydrator\ClassMethods', 'objectproperty' => 'Zend\Stdlib\Hydrator\ObjectProperty', 'reflection' => 'Zend\Stdlib\Hydrator\Reflection' ); /** * Default factory-based adapters * * @var array */ protected $factories = array( 'Zend\Stdlib\Hydrator\DelegatingHydrator' => 'Zend\Stdlib\Hydrator\DelegatingHydratorFactory', ); /** * {@inheritDoc} */ public function validatePlugin($plugin) { if ($plugin instanceof HydratorInterface) { // we're okay return; } throw new Exception\RuntimeException(sprintf( 'Plugin of type %s is invalid; must implement Zend\Stdlib\Hydrator\HydratorInterface', (is_object($plugin) ? get_class($plugin) : gettype($plugin)) )); } }