ProxiedMethodReflection
class ProxiedMethodReflection implements MethodReflection
Describe a method that a proxy passes to its target, returning what the proxy returns.
Methods
Create a proxied method reflection.
Return the method name.
Return the proxy class.
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 target method's variants with the proxy's parameters and return types.
Describe a target method's variant as a proxy receives it, returning the given type.
Resolve the static types in a type the proxy returns to their classes. PHPStan binds the static types of a proxy's members to the proxy, while they describe the proxy's target.
Determine whether the target method is deprecated.
Return the target method's deprecation description.
Determine whether the method is final.
Determine whether the target method is internal.
Return the target method's throw type.
Determine whether the method has side effects.
Details
at line 31
__construct(ClassReflection $declaringClass, MethodReflection $targetMethod, Closure $returnType)
Create a proxied method reflection.
at line 41
string
getName()
Return the method name.
at line 49
ClassReflection
getDeclaringClass()
Return the proxy class.
at line 57
bool
isStatic()
Determine whether the method is static.
at line 65
bool
isPrivate()
Determine whether the method is private.
at line 73
bool
isPublic()
Determine whether the method is public.
at line 81
string|null
getDocComment()
Return the method docblock.
at line 89
ClassMemberReflection
getPrototype()
Return the method prototype.
at line 99
array
getVariants()
Return the target method's variants with the proxy's parameters and return types.
at line 113
static FunctionVariant
proxyVariant(ParametersAcceptor $variant, Type $returnType)
Describe a target method's variant as a proxy receives it, returning the given type.
at line 129
static Type
resolveStaticTypes(Type $type)
Resolve the static types in a type the proxy returns to their classes. PHPStan binds the static types of a proxy's members to the proxy, while they describe the proxy's target.
at line 140
TrinaryLogic
isDeprecated()
Determine whether the target method is deprecated.
at line 148
string|null
getDeprecatedDescription()
Return the target method's deprecation description.
at line 156
TrinaryLogic
isFinal()
Determine whether the method is final.
at line 164
TrinaryLogic
isInternal()
Determine whether the target method is internal.
at line 172
Type|null
getThrowType()
Return the target method's throw type.
at line 180
TrinaryLogic
hasSideEffects()
Determine whether the method has side effects.