HasIntersectionTrait
-
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
addIntersectionType()
public
addIntersectionType(TNamedObject|TTemplateParam|TIterable|TObjectWithProperties|TCallableObject $type) : static
Parameters
-
$type
: TNamedObject|TTemplateParam|TIterable|TObjectWithProperties|TCallableObject
-
getIntersectionTypes()
public
getIntersectionTypes() : array<string, TNamedObject|TTemplateParam|TIterable|TObjectWithProperties|TCallableObject>
setIntersectionTypes()
public
setIntersectionTypes(array<string, TNamedObject|TTemplateParam|TIterable|TObjectWithProperties|TCallableObject> $types) : static
Parameters
-
$types
: array<string, TNamedObject|TTemplateParam|TIterable|TObjectWithProperties|TCallableObject>
-
replaceIntersectionTemplateTypesWithArgTypes()
protected
replaceIntersectionTemplateTypesWithArgTypes(TemplateResult $template_result, Codebase|null $codebase) : array<string, TNamedObject|TTemplateParam|TIterable|TObjectWithProperties|TCallableObject>|null
Parameters
-
$template_result
: TemplateResult
-
-
$codebase
: Codebase|null
-
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
-
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
-