MacroRegistrationMethodReflection
class MacroRegistrationMethodReflection extends ForwardedMethodReflection
Describe an Eloquent builder's macro() or mixin(), which both its call() and callStatic() accept.
The query's closure binding is not copied, because a local macro runs with its own $this. MacroRegistrationExtension types the call forms that differ.
Methods
Create a forwarded method reflection.
Return the method of the object that handles the call.
Determine whether the method is static.
Return the variants without the query's closure binding.
Determine whether the method is deprecated.
Return the deprecation description.
Determine whether the method has side effects.
Details
in
ForwardedMethodReflection at line 30
__construct(ClassReflection $declaringClass, MethodReflection $forwardedMethod)
Create a forwarded 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 25
bool
isStatic()
Determine whether the method is static.
in
ForwardedMethodReflection at line 73
bool
isPrivate()
Determine whether the method is private.
in
ForwardedMethodReflection at line 81
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 35
array
getVariants()
Return the variants without the query's closure binding.
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.