Documentation

GenericTrait

Tags
template
psalm-immutable

Table of Contents

Methods

getId()  : string
setTypeParams()  : static
toNamespacedString()  : string
replaceTypeParamsTemplateTypesWithArgTypes()  : TTypeParams|null
replaceTypeParamsTemplateTypesWithStandins()  : TTypeParams|null

Methods

getId()

public getId([bool $exact = true ][, bool $nested = false ]) : string
Parameters
$exact : bool = true
$nested : bool = false
Return values
string

setTypeParams()

public setTypeParams(TTypeParams $type_params) : static
Parameters
$type_params : TTypeParams
Return values
static

toNamespacedString()

public toNamespacedString(string|null $namespace, array<lowercase-string, string> $aliased_classes, string|null $this_class, bool $use_phpdoc_format) : string
Parameters
$namespace : string|null
$aliased_classes : array<lowercase-string, string>
$this_class : string|null
$use_phpdoc_format : bool
Return values
string

replaceTypeParamsTemplateTypesWithArgTypes()

protected replaceTypeParamsTemplateTypesWithArgTypes(TemplateResult $template_result, Codebase|null $codebase) : TTypeParams|null
Parameters
$template_result : TemplateResult
$codebase : Codebase|null
Return values
TTypeParams|null

replaceTypeParamsTemplateTypesWithStandins()

protected replaceTypeParamsTemplateTypesWithStandins(TemplateResult $template_result, Codebase $codebase[, StatementsAnalyzer|null $statements_analyzer = null ][, Atomic|null $input_type = null ][, int|null $input_arg_offset = null ][, string|null $calling_class = null ][, string|null $calling_function = null ][, bool $replace = true ][, bool $add_lower_bound = false ][, int $depth = 0 ]) : TTypeParams|null
Parameters
$template_result : TemplateResult
$codebase : Codebase
$statements_analyzer : StatementsAnalyzer|null = null
$input_type : Atomic|null = null
$input_arg_offset : int|null = null
$calling_class : string|null = null
$calling_function : string|null = null
$replace : bool = true
$add_lower_bound : bool = false
$depth : int = 0
Return values
TTypeParams|null

        
On this page

Search results