lib/Doctrine/DBAL/Types/TypeRegistry.php
public function register(string $name, Type $type) : void
    {
        if (isset($this->instances[$name])) {
            throw DBALException::typeExists($name);
        }

        if ($this->findTypeName($type) !== null) {
            throw DBALException::typeAlreadyRegistered($type);
        }

        $this->instances[$name] = $type;
    }
public function register(string $name, Type $type) : void
    {
        if (isset($this->instances[$name])) {
            throw DBALException::typeExists($name);
        }

        if ($this->findTypeName($type) !== null) {
            throw DBALException::typeAlreadyRegistered($type);
        }

        $this->instances[$name] = $type;
    }
public function register ( string $ name , Type $ type ) : void { if ( isset ( $ this -> instances [ $ name ] ) ) { throw DBALException :: typeExists ( $ name ) ; } if ( $ this -> findTypeName ( $ type ) !== null ) { throw DBALException :: typeAlreadyRegistered ( $ type ) ; } $ this -> instances [ $ name ] = $ type ; }
Registers a custom type to the type map.

@throws DBALException
Registers a custom type to the type map .