ForwardedModelMethodReflection
class ForwardedModelMethodReflection extends ForwardedMethodReflection
Describe a method an Eloquent model's call() or callStatic() handles, which is callable both ways.
Methods
Create a forwarded model method reflection.
Return the method of the object that handles the call.
Determine whether the method is static.
Determine whether the method is private.
Determine whether the method is public.
Return the builder method's variants, with the instance call's result when it differs.
Determine whether the method is deprecated.
Return the deprecation description.
Determine whether the method has side effects.
Details
at line 26
__construct(ClassReflection $declaringClass, MethodReflection $forwardedMethod, Type|null $returnType = null)
Create a forwarded model method reflection.
in
ForwardedMethodReflection at line 39
string
getName()
Return the method name.
in
ForwardedMethodReflection at line 47
ClassReflection
getDeclaringClass()
Return the declaring class.
in
ForwardedMethodReflection at line 55
MethodReflection
getForwardedMethod()
Return the method of the object that handles the call.
at line 61
bool
isStatic()
Determine whether the method is static.
at line 69
bool
isPrivate()
Determine whether the method is private.
at line 77
bool
isPublic()
Determine whether the method is public.
in
ForwardedMethodReflection at line 89
string|null
getDocComment()
Return the method docblock.
in
ForwardedMethodReflection at line 97
ClassMemberReflection
getPrototype()
Return the method prototype.
at line 39
array
getVariants()
Return the builder method's variants, with the instance call's result when it differs.
in
ForwardedMethodReflection at line 131
TrinaryLogic
isDeprecated()
Determine whether the method is deprecated.
in
ForwardedMethodReflection at line 139
string|null
getDeprecatedDescription()
Return the deprecation description.
in
ForwardedMethodReflection at line 147
TrinaryLogic
isFinal()
Determine whether the method is final.
in
ForwardedMethodReflection at line 155
TrinaryLogic
isInternal()
Determine whether the method is internal.
in
ForwardedMethodReflection at line 163
Type|null
getThrowType()
Return the declared throw type.
in
ForwardedMethodReflection at line 171
TrinaryLogic
hasSideEffects()
Determine whether the method has side effects.