'Zend\Stdlib\Hydrator\ArraySerializable', 'classmethods' => 'Zend\Stdlib\Hydrator\ClassMethods', 'objectproperty' => 'Zend\Stdlib\Hydrator\ObjectProperty', 'reflection' => 'Zend\Stdlib\Hydrator\Reflection' ); /** * {@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)) )); } }