ForwardedMethodReflection
class ForwardedMethodReflection implements MethodReflection
Describe a method that another object handles for the receiver.
The receiver is the declaring class, so PHPStan binds the receiver's template types in the forwarded signature.
Methods
Create a forwarded method reflection.
Return the method name.
Return the declaring class.
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 method docblock.
Return the method prototype.
Return the forwarded method variants.
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 30
__construct(ClassReflection $declaringClass, MethodReflection $forwardedMethod)
Create a forwarded method reflection.
at line 39
string
getName()
Return the method name.
at line 47
ClassReflection
getDeclaringClass()
Return the declaring class.
at line 55
MethodReflection
getForwardedMethod()
Return the method of the object that handles the call.
at line 63
bool
isStatic()
Determine whether the method is static.
at line 73
bool
isPrivate()
Determine whether the method is private.
at line 81
bool
isPublic()
Determine whether the method is public.
at line 89
string|null
getDocComment()
Return the method docblock.
at line 97
ClassMemberReflection
getPrototype()
Return the method prototype.
at line 110
array
getVariants()
Return the forwarded method variants.
The receiver's __call() passes the argument values on, so a reference parameter never gets the caller's variable. A variant without one stays as it is, keeping PHPStan's extended metadata.
at line 131
TrinaryLogic
isDeprecated()
Determine whether the method is deprecated.
at line 139
string|null
getDeprecatedDescription()
Return the deprecation description.
at line 147
TrinaryLogic
isFinal()
Determine whether the method is final.
at line 155
TrinaryLogic
isInternal()
Determine whether the method is internal.
at line 163
Type|null
getThrowType()
Return the declared throw type.
at line 171
TrinaryLogic
hasSideEffects()
Determine whether the method has side effects.