DynamicRelationMethodReflection
class DynamicRelationMethodReflection implements MethodReflection
Describe a relation method that a __call() handles without arguments, such as a relation that resolveRelationUsing() registers or a model's through{Relation}().
Methods
Create a dynamic relation method reflection.
Return the declaring class.
Determine whether the method is static.
Determine whether the method is private.
Determine whether the method is public.
Return the method name.
Return the method prototype.
Return the method's single variant, which takes no arguments.
Return no docblock for the synthesized signature.
Determine whether the method is deprecated.
Return the deprecation description.
Determine whether the method is final.
Determine whether the method is internal.
Return the declared throw type.
Determine whether the method has side effects.
Details
at line 24
__construct(ClassReflection $declaringClass, string $methodName, Type $returnType, bool $isStatic)
Create a dynamic relation method reflection.
at line 35
ClassReflection
getDeclaringClass()
Return the declaring class.
at line 43
bool
isStatic()
Determine whether the method is static.
at line 51
bool
isPrivate()
Determine whether the method is private.
at line 59
bool
isPublic()
Determine whether the method is public.
at line 67
string
getName()
Return the method name.
at line 75
ClassMemberReflection
getPrototype()
Return the method prototype.
at line 85
array
getVariants()
Return the method's single variant, which takes no arguments.
at line 101
string|null
getDocComment()
Return no docblock for the synthesized signature.
at line 109
TrinaryLogic
isDeprecated()
Determine whether the method is deprecated.
at line 117
string|null
getDeprecatedDescription()
Return the deprecation description.
at line 125
TrinaryLogic
isFinal()
Determine whether the method is final.
at line 133
TrinaryLogic
isInternal()
Determine whether the method is internal.
at line 141
Type|null
getThrowType()
Return the declared throw type.
at line 149
TrinaryLogic
hasSideEffects()
Determine whether the method has side effects.