GenericModelPropertyType
class GenericModelPropertyType extends StringType
A string naming a database property of a model, written model-property
Methods
Create a new generic model property type instance.
Describe the type.
Get the classes the type refers to.
Get the model type whose properties the string names.
Determine whether the type equals another.
Determine whether the type accepts another, checking a constant string against the model's properties.
Determine whether the type is a supertype of another.
Map the model type through a callback.
Infer the model template type from a received type.
Get the template types the model type refers to.
Determine whether the type has template or late-resolvable parts.
Restore the type from var_export() output.
Details
at line 38
__construct(Type $type, ModelPropertyHelper $modelPropertyHelper)
Create a new generic model property type instance.
at line 46
string
describe(VerbosityLevel $level)
Describe the type.
at line 56
array
getReferencedClasses()
Get the classes the type refers to.
at line 64
Type
getGenericType()
Get the model type whose properties the string names.
at line 72
bool
equals(Type $type)
Determine whether the type equals another.
at line 82
AcceptsResult
accepts(Type $type, bool $strictTypes)
Determine whether the type accepts another, checking a constant string against the model's properties.
A "table.column" string is checked against that table on the model's connection.
at line 153
IsSuperTypeOfResult
isSuperTypeOf(Type $type)
Determine whether the type is a supertype of another.
at line 179
Type
traverse(callable $cb)
Map the model type through a callback.
at line 193
TemplateTypeMap
inferTemplateTypes(Type $receivedType)
Infer the model template type from a received type.
at line 230
array
getReferencedTemplateTypes(TemplateTypeVariance $positionVariance)
Get the template types the model type refers to.
at line 240
bool
hasTemplateOrLateResolvableType()
Determine whether the type has template or late-resolvable parts.
at line 250
static Type
__set_state(array $properties)
Restore the type from var_export() output.