private function initColumnTypes()
    {
        $this->columnTypes = [];

        foreach ($this->loadColumnTypes() as $type) {
            if (!$type instanceof ColumnTypeInterface) {
                throw new UnexpectedTypeException($type, ColumnTypeInterface::class);
            }

            $this->columnTypes[get_class($type)] = $type;
        }
    }
private function initColumnTypes()
    {
        $this->columnTypes = [];

        foreach ($this->loadColumnTypes() as $type) {
            if (!$type instanceof ColumnTypeInterface) {
                throw new UnexpectedTypeException($type, ColumnTypeInterface::class);
            }

            $this->columnTypes[get_class($type)] = $type;
        }
    }
private function initColumnTypes ( ) { $ this -> columnTypes = [ ] ; foreach ( $ this -> loadColumnTypes ( ) as $ type ) { if ( ! $ type instanceof ColumnTypeInterface ) { throw new UnexpectedTypeException ( $ type , ColumnTypeInterface :: class ) ; } $ this -> columnTypes [ get_class ( $ type ) ] = $ type ; } }
Initializes the column types.

@throws UnexpectedTypeException if any registered type is not an instance of ColumnTypeInterface
Initializes the column types .