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 | ||
|---|---|---|
public
|
getName(): string
|
# |
public
|
getPrototype(): ClassMemberReflection
|
# |
public
|
getVariants(): list<ParametersAcceptor>
|
# |
public
|
isDeprecated(): TrinaryLogic
|
# |
public
|
getDeprecatedDescription(): ?string
|
# |
public
|
isFinal(): TrinaryLogic
|
# |
public
|
isInternal(): TrinaryLogic
|
# |
public
|
getThrowType(): ?Type
|
# |
public
|
hasSideEffects(): TrinaryLogic
|
# |
| Methods inherited from PHPStan\Reflection\ClassMemberReflection |
|---|
getDeclaringClass(), isStatic(), isPrivate(), isPublic(), getDocComment() |