public getTemplateParameterTypeList ( ) : array | ||
return | array | A map from template type identifiers to the UnionType to replace it with |
public function getTemplateParameterTypeList() : array
{
if ($this->isEmpty()) {
return [];
}
return array_reduce($this->getTypeSet()->toArray(), function (array $map, Type $type) {
return array_merge($type->getTemplateParameterTypeList(), $map);
}, []);
}