src/LdapTools/Factory/HydratorFactory.php
public function get($hydratorType)
    {
        if (self::TO_ARRAY == $hydratorType) {
            return new ArrayHydrator();
        } elseif (self::TO_OBJECT == $hydratorType) {
            return new LdapObjectHydrator();
        } else {
            throw new InvalidArgumentException(sprintf('Unknown hydrator type "%s".', $hydratorType));
        }
    }
public function get($hydratorType)
    {
        if (self::TO_ARRAY == $hydratorType) {
            return new ArrayHydrator();
        } elseif (self::TO_OBJECT == $hydratorType) {
            return new LdapObjectHydrator();
        } else {
            throw new InvalidArgumentException(sprintf('Unknown hydrator type "%s".', $hydratorType));
        }
    }
public function get ( $ hydratorType ) { if ( self :: TO_ARRAY == $ hydratorType ) { return new ArrayHydrator ( ) ; } elseif ( self :: TO_OBJECT == $ hydratorType ) { return new LdapObjectHydrator ( ) ; } else { throw new InvalidArgumentException ( sprintf ( 'Unknown hydrator type "%s".' , $ hydratorType ) ) ; } }
Get the hydrator by its type.

@param string $hydratorType
@return \LdapTools\Hydrator\HydratorInterface
Get the hydrator by its type .