BuilderOfType
class BuilderOfType implements CompoundType, LateResolvableType
The builder a model's newQuery() creates, written builder-of
model-query-of
Traits
Methods
Create a builder-of type.
Resolve the builder type of each model the type stands for.
Determine whether the type can be resolved, which waits for its template types.
Get the classes the type refers to.
Get the template types the type refers to.
Determine whether the type equals another.
Describe the type.
Map the inner types.
Map the inner types together with another builder-of type's.
Convert the type to a PHPDoc node.
Generalize the inner types.
Details
at line 49
__construct(Type $type, BuilderHelper $builderHelper, Type|null $relationType = null, bool $modelQuery = false)
Create a builder-of type.
at line 60
protected Type
getResult()
Resolve the builder type of each model the type stands for.
at line 103
bool
isResolvable()
Determine whether the type can be resolved, which waits for its template types.
at line 114
array
getReferencedClasses()
Get the classes the type refers to.
at line 124
array
getReferencedTemplateTypes(TemplateTypeVariance $positionVariance)
Get the template types the type refers to.
at line 139
bool
equals(Type $type)
Determine whether the type equals another.
at line 150
string
describe(VerbosityLevel $level)
Describe the type.
at line 161
Type
traverse(callable $cb)
Map the inner types.
at line 176
Type
traverseSimultaneously(Type $right, callable $cb)
Map the inner types together with another builder-of type's.
at line 199
TypeNode
toPhpDocNode()
Convert the type to a PHPDoc node.
at line 221
Type
generalize(GeneralizePrecision $precision)
Generalize the inner types.