private function initializeTypes()
    {
        foreach ($this->typesConfig as $typeName => $typeConfig) {
            if (Type::hasType($typeName)) {
                Type::overrideType($typeName, $typeConfig['class']);
            } else {
                Type::addType($typeName, $typeConfig['class']);
            }
        }

        $this->initialized = true;
    }
private function initializeTypes()
    {
        foreach ($this->typesConfig as $typeName => $typeConfig) {
            if (Type::hasType($typeName)) {
                Type::overrideType($typeName, $typeConfig['class']);
            } else {
                Type::addType($typeName, $typeConfig['class']);
            }
        }

        $this->initialized = true;
    }
private function initializeTypes ( ) { foreach ( $ this -> typesConfig as $ typeName => $ typeConfig ) { if ( Type :: hasType ( $ typeName ) ) { Type :: overrideType ( $ typeName , $ typeConfig [ 'class' ] ) ; } else { Type :: addType ( $ typeName , $ typeConfig [ 'class' ] ) ; } } $ this -> initialized = true ; }
initialize the types
initialize the types