public function addType(Type $type)
    {
        $name = $type->getName();

        if (!Type::hasType($name)) {
            Type::addType($name, get_class($type));
        }

        $this->types[$name] = $type;
    }
public function addType(Type $type)
    {
        $name = $type->getName();

        if (!Type::hasType($name)) {
            Type::addType($name, get_class($type));
        }

        $this->types[$name] = $type;
    }
public function addType ( Type $ type ) { $ name = $ type -> getName ( ) ; if ( ! Type :: hasType ( $ name ) ) { Type :: addType ( $ name , get_class ( $ type ) ) ; } $ this -> types [ $ name ] = $ type ; }
Register the given type instance

@throws DBALException
Register the given type instance