Documentation

HasIntersectionTrait

Tags
psalm-immutable

Table of Contents

Properties

$extra_types  : array<string, TNamedObject|TTemplateParam|TIterable|TObjectWithProperties|TCallableObject>

Methods

addIntersectionType()  : static
getIntersectionTypes()  : array<string, TNamedObject|TTemplateParam|TIterable|TObjectWithProperties|TCallableObject>
setIntersectionTypes()  : static
replaceIntersectionTemplateTypesWithArgTypes()  : array<string, TNamedObject|TTemplateParam|TIterable|TObjectWithProperties|TCallableObject>|null
replaceIntersectionTemplateTypesWithStandins()  : array<string, TNamedObject|TTemplateParam|TIterable|TObjectWithProperties|TCallableObject>|null
getNamespacedIntersectionTypes()  : string

Properties

Methods

replaceIntersectionTemplateTypesWithStandins()

protected replaceIntersectionTemplateTypesWithStandins(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 ]) : array<string, TNamedObject|TTemplateParam|TIterable|TObjectWithProperties|TCallableObject>|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
array<string, TNamedObject|TTemplateParam|TIterable|TObjectWithProperties|TCallableObject>|null

getNamespacedIntersectionTypes()

private getNamespacedIntersectionTypes(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

        
On this page

Search results