Methods |
public
|
__construct(
InitializerExprTypeResolver $initializerExprTypeResolver,
ClassReflection $declaringClass,
?ClassReflection $declaringTrait,
ReflectionMethod $reflection,
ReflectionProvider $reflectionProvider,
Parser $parser,
TemplateTypeMap $templateTypeMap,
Type[] $phpDocParameterTypes,
?Type $phpDocReturnType,
?Type $phpDocThrowType,
?string $deprecatedDescription,
bool $isDeprecated,
bool $isInternal,
bool $isFinal,
?bool $isPure,
Assertions $asserts,
bool $acceptsNamedArguments,
?Type $selfOutType,
?string $phpDocComment,
Type[] $phpDocParameterOutTypes,
array<string, TrinaryLogic> $immediatelyInvokedCallableParameters,
array<string, Type> $phpDocClosureThisTypeParameters,
)
|
#
|
public
|
getDeclaringClass(): ClassReflection
|
#
|
public
|
getDeclaringTrait(): ?ClassReflection
|
#
|
public
|
getPrototype(): self|MethodPrototypeReflection
|
#
|
public
|
isStatic(): bool
|
#
|
public
|
getName(): string
|
#
|
public
|
getVariants(): list<ExtendedParametersAcceptor>
|
#
|
public
|
getOnlyVariant(): ExtendedParametersAcceptor
|
#
|
public
|
getNamedArgumentsVariants(): ?array
|
#
|
public
|
isPrivate(): bool
|
#
|
public
|
isPublic(): bool
|
#
|
public
|
getDeprecatedDescription(): ?string
|
#
|
public
|
isDeprecated(): TrinaryLogic
|
#
|
public
|
isInternal(): TrinaryLogic
|
#
|
public
|
isFinal(): TrinaryLogic
|
#
|
public
|
isFinalByKeyword(): TrinaryLogic
|
#
|
public
|
isAbstract(): bool
|
#
|
public
|
getThrowType(): ?Type
|
#
|
public
|
hasSideEffects(): TrinaryLogic
|
#
|
public
|
getAsserts(): Assertions
|
#
|
public
|
acceptsNamedArguments(): TrinaryLogic
|
#
|
public
|
getSelfOutType(): ?Type
|
#
|
public
|
getDocComment(): ?string
|
#
|
public
|
returnsByReference(): TrinaryLogic
|
#
|
public
|
isPure(): TrinaryLogic
This indicates whether the method has phpstan-pure
or phpstan-impure annotation above it.
This indicates whether the method has phpstan-pure
or phpstan-impure annotation above it.
In most cases asking hasSideEffects() is much more practical
as it also accounts for void return type (method being always impure).
Implements
|
#
|