Interface PHPStan\Reflection\MethodReflection

extends ClassMemberReflection

Reflection for a class method.

This is the interface extension developers should implement when creating custom MethodsClassReflectionExtension implementations for magic methods (__call, etc.).

Methods can have multiple "variants" (overloaded signatures) — for example, built-in functions like array_map have different signatures depending on the number of arguments. Each variant is a ParametersAcceptor.

For additional method metadata (assertions, purity, named arguments, attributes), see ExtendedMethodReflection which extends this interface.

Methods
Methods inherited from PHPStan\Reflection\ClassMemberReflection
getDeclaringClass(), isStatic(), isPrivate(), isPublic(), getDocComment()