public getTemplateType ( string $template_type_identifier ) : Phan\Language\Type\TemplateType | ||
$template_type_identifier | string | |
return | Phan\Language\Type\TemplateType | A TemplateType parameterizing the generic class in scope |
public function getTemplateType(string $template_type_identifier) : TemplateType
{
assert($this->hasTemplateType($template_type_identifier), "Cannot get template type with identifier {$template_type_identifier}");
return $this->template_type_map[$template_type_identifier] ?? $this->getParentScope()->getTemplateType($template_type_identifier);
}