Methods |
public
|
__construct(
ClassReflection $classReflection,
array<int, Type> $types,
?Type $subtractedType,
array<int, TemplateTypeVariance> $variances,
)
|
#
|
public
|
getTypes(): array<int, Type>
|
#
|
public
|
getVariances(): array<int, TemplateTypeVariance>
|
#
|
public
|
getStaticObjectType(): ObjectType
|
#
|
public
|
changeBaseClass(ClassReflection $classReflection): StaticType
|
#
|
public
|
isSuperTypeOf(Type $type): IsSuperTypeOfResult
|
#
|
public
|
traverse(callable $cb): Type
Traverses inner types Returns a new instance with all inner types mapped through $cb. Might
return the same instance if inner types did not change.
Traverses inner types Returns a new instance with all inner types mapped through $cb. Might
return the same instance if inner types did not change.
Overrides
|
#
|
public
|
traverseSimultaneously(Type $right, callable $cb): Type
Traverses inner types while keeping the same context in another type.
Traverses inner types while keeping the same context in another type.
Overrides
|
#
|
public
|
changeSubtractedType(?Type $subtractedType): Type
|
#
|
public
|
inferTemplateTypes(Type $receivedType): TemplateTypeMap
Infers template types Infers the real Type of the TemplateTypes found in $this, based on
the received Type.
Infers template types Infers the real Type of the TemplateTypes found in $this, based on
the received Type.
Implements
|
#
|
public
|
getReferencedTemplateTypes(TemplateTypeVariance $positionVariance): array
Returns the template types referenced by this Type, recursively The return value is a list of TemplateTypeReferences, who contain the
referenced template type as well as the variance position in which it was
found. For example, calling this on array<Foo<T>,Bar> (with T a template type)
will return one TemplateTypeReference for the type T.
Returns the template types referenced by this Type, recursively The return value is a list of TemplateTypeReferences, who contain the
referenced template type as well as the variance position in which it was
found. For example, calling this on array<Foo<T>,Bar> (with T a template type)
will return one TemplateTypeReference for the type T.
Parameters
$positionVariance |
The variance position in
which the receiver type was
found.
|
Implements
|
#
|
public
|
toPhpDocNode(): TypeNode
|
#
|