public function getAll () : array
    {
        return array_map(
            function (string $key)
            {
                return $this->getType($key);
            },
            array_keys($this->types)
        );
    }
public function getAll () : array
    {
        return array_map(
            function (string $key)
            {
                return $this->getType($key);
            },
            array_keys($this->types)
        );
    }
public function getAll ( ) : array { return array_map ( function ( string $ key ) { return $ this -> getType ( $ key ) ; } , array_keys ( $ this -> types ) ) ; }
Returns all component types

@return ComponentType[]
Returns all component types