public static function getType($type)
    {
        if (!isset(static::$mappedTypeInstances[$type])) {
            if (!static::hasType($type)) {
                throw TypeException::typeDoesNotExist($type);
            }

            static::$mappedTypeInstances[$type] = new static::$mappedTypeClasses[$type]();
        }

        return static::$mappedTypeInstances[$type];
    }
public static function getType($type)
    {
        if (!isset(static::$mappedTypeInstances[$type])) {
            if (!static::hasType($type)) {
                throw TypeException::typeDoesNotExist($type);
            }

            static::$mappedTypeInstances[$type] = new static::$mappedTypeClasses[$type]();
        }

        return static::$mappedTypeInstances[$type];
    }
public static function getType ( $ type ) { if ( ! isset ( static :: $ mappedTypeInstances [ $ type ] ) ) { if ( ! static :: hasType ( $ type ) ) { throw TypeException :: typeDoesNotExist ( $ type ) ; } static :: $ mappedTypeInstances [ $ type ] = new static :: $ mappedTypeClasses [ $ type ] ( ) ; } return static :: $ mappedTypeInstances [ $ type ] ; }
Gets a type.

@param string $type The type name.

@throws \Fridge\DBAL\Exception\TypeException If the type does not exist.

@return \Fridge\DBAL\Type\TypeInterface The type.
Gets a type .