extends |
MethodReflection |
|---|
Extended method reflection with additional metadata beyond MethodReflection.
This interface exists to allow PHPStan to add new method query methods in minor versions without breaking existing MethodsClassReflectionExtension implementations. Extension developers should implement MethodReflection, not this interface — PHPStan wraps MethodReflection implementations to provide ExtendedMethodReflection.
Provides access to:
This is the return type of Type::getMethod() and Scope::getMethodReflection().
| Methods | ||
|---|---|---|
public
|
getVariants(): list<ExtendedParametersAcceptor>
|
# |
public
|
getNamedArgumentsVariants(): list<ExtendedParametersAcceptor>|null
|
# |
public
|
acceptsNamedArguments(): TrinaryLogic
|
# |
public
|
getAsserts(): Assertions
|
# |
public
|
getSelfOutType(): ?Type
|
# |
public
|
returnsByReference(): TrinaryLogic
|
# |
public
|
isFinalByKeyword(): TrinaryLogic
|
# |
public
|
isAbstract(): TrinaryLogic|bool
|
# |
public
|
isBuiltin(): TrinaryLogic|bool
|
# |
public
|
isPure(): TrinaryLogic
|
# |
public
|
getPureUnlessCallableIsImpureParameters(): array<string, TrinaryLogic>
|
# |
public
|
getPureUnlessParameterPassedParameters(): array<string, TrinaryLogic>
|
# |
public
|
getAttributes(): list<AttributeReflection>
|
# |
public
|
mustUseReturnValue(): TrinaryLogic
|
# |
public
|
getResolvedPhpDoc(): ?ResolvedPhpDocBlock
|
# |
| Methods inherited from PHPStan\Reflection\MethodReflection |
|---|
getName(), getPrototype(), isDeprecated(), getDeprecatedDescription(), isFinal(), isInternal(), getThrowType(), hasSideEffects() |
| Methods inherited from PHPStan\Reflection\ClassMemberReflection |
|---|
getDeclaringClass(), isStatic(), isPrivate(), isPublic(), getDocComment() |