private function initTableTypes()
    {
        $this->tableTypes = [];

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

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

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

            $this->tableTypes[get_class($type)] = $type;
        }
    }
private function initTableTypes ( ) { $ this -> tableTypes = [ ] ; foreach ( $ this -> loadTableTypes ( ) as $ type ) { if ( ! $ type instanceof TableTypeInterface ) { throw new UnexpectedTypeException ( $ type , TableTypeInterface :: class ) ; } $ this -> tableTypes [ get_class ( $ type ) ] = $ type ; } }
Initializes the table types.

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