Phan\Language\Scope::hasTemplateType PHP Method

hasTemplateType() public method

public hasTemplateType ( string $template_type_identifier ) : boolean
$template_type_identifier string
return boolean True if the given template type identifier is defined within this context
    public function hasTemplateType(string $template_type_identifier) : bool
    {
        return isset($this->template_type_map[$template_type_identifier]) || ($this->hasParentScope() ? $this->getParentScope()->hasTemplateType($template_type_identifier) : false);
    }