public static function overrideType($type, $class)
    {
        if (!static::hasType($type)) {
            throw TypeException::typeDoesNotExist($type);
        }

        if (!class_exists($class)) {
            throw TypeException::classNotFound($class);
        }

        if (!in_array('Fridge\DBAL\Type\TypeInterface', class_implements($class))) {
            throw TypeException::typeMustImplementTypeInterface($class);
        }

        if (isset(static::$mappedTypeInstances[$type])) {
            unset(static::$mappedTypeInstances[$type]);
        }

        static::$mappedTypeClasses[$type] = $class;
    }
public static function overrideType($type, $class)
    {
        if (!static::hasType($type)) {
            throw TypeException::typeDoesNotExist($type);
        }

        if (!class_exists($class)) {
            throw TypeException::classNotFound($class);
        }

        if (!in_array('Fridge\DBAL\Type\TypeInterface', class_implements($class))) {
            throw TypeException::typeMustImplementTypeInterface($class);
        }

        if (isset(static::$mappedTypeInstances[$type])) {
            unset(static::$mappedTypeInstances[$type]);
        }

        static::$mappedTypeClasses[$type] = $class;
    }
public static function overrideType ( $ type , $ class ) { if ( ! static :: hasType ( $ type ) ) { throw TypeException :: typeDoesNotExist ( $ type ) ; } if ( ! class_exists ( $ class ) ) { throw TypeException :: classNotFound ( $ class ) ; } if ( ! in_array ( 'Fridge\DBAL\Type\TypeInterface' , class_implements ( $ class ) ) ) { throw TypeException :: typeMustImplementTypeInterface ( $ class ) ; } if ( isset ( static :: $ mappedTypeInstances [ $ type ] ) ) { unset ( static :: $ mappedTypeInstances [ $ type ] ) ; } static :: $ mappedTypeClasses [ $ type ] = $ class ; }
Overrides an existing type.

@param string $type  The type name.
@param string $class The type class.

@throws \Fridge\DBAL\Exception\TypeException If the type does not exist, if the class can not be found or if
the class does not implement the TypeInterface.
Overrides an existing type .