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

__construct(ClassReflection $declaringClass, MethodReflection $forwardedMethod)

Create a forwarded method reflection.

string
getName()

Return the method name.

ClassReflection
getDeclaringClass()

Return the declaring class.

MethodReflection
getForwardedMethod()

Return the method of the object that handles the call.

bool
isStatic()

Determine whether the method is static.

bool
isPrivate()

Determine whether the method is private.

bool
isPublic()

Determine whether the method is public.

string|null
getDocComment()

Return the method docblock.

ClassMemberReflection
getPrototype()

Return the method prototype.

array
getVariants()

Return the forwarded method variants.

TrinaryLogic
isDeprecated()

Determine whether the method is deprecated.

string|null
getDeprecatedDescription()

Return the deprecation description.

TrinaryLogic
isFinal()

Determine whether the method is final.

TrinaryLogic
isInternal()

Determine whether the method is internal.

Type|null
getThrowType()

Return the declared throw type.

TrinaryLogic
hasSideEffects()

Determine whether the method has side effects.

Details

at line 30
__construct(ClassReflection $declaringClass, MethodReflection $forwardedMethod)

Create a forwarded method reflection.

Parameters

ClassReflection $declaringClass
MethodReflection $forwardedMethod

at line 39
string getName()

Return the method name.

Return Value

string

at line 47
ClassReflection getDeclaringClass()

Return the declaring class.

Return Value

ClassReflection

at line 55
MethodReflection getForwardedMethod()

Return the method of the object that handles the call.

Return Value

MethodReflection

at line 63
bool isStatic()

Determine whether the method is static.

Return Value

bool

at line 73
bool isPrivate()

Determine whether the method is private.

Return Value

bool

at line 81
bool isPublic()

Determine whether the method is public.

Return Value

bool

at line 89
string|null getDocComment()

Return the method docblock.

Return Value

string|null

at line 97
ClassMemberReflection getPrototype()

Return the method prototype.

Return Value

ClassMemberReflection

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.

Return Value

array

at line 131
TrinaryLogic isDeprecated()

Determine whether the method is deprecated.

Return Value

TrinaryLogic

at line 139
string|null getDeprecatedDescription()

Return the deprecation description.

Return Value

string|null

at line 147
TrinaryLogic isFinal()

Determine whether the method is final.

Return Value

TrinaryLogic

at line 155
TrinaryLogic isInternal()

Determine whether the method is internal.

Return Value

TrinaryLogic

at line 163
Type|null getThrowType()

Return the declared throw type.

Return Value

Type|null

at line 171
TrinaryLogic hasSideEffects()

Determine whether the method has side effects.

Return Value

TrinaryLogic