private function prepareComponentList (array $types)
    {
        $this->types = [];

        foreach ($types as $type)
        {
            $this->types[$type->getKey()] = $type;
        }
    }
private function prepareComponentList (array $types)
    {
        $this->types = [];

        foreach ($types as $type)
        {
            $this->types[$type->getKey()] = $type;
        }
    }
private function prepareComponentList ( array $ types ) { $ this -> types = [ ] ; foreach ( $ types as $ type ) { $ this -> types [ $ type -> getKey ( ) ] = $ type ; } }
Prepares the internal data structure

@param ComponentType[] $types
Prepares the internal data structure