Methods |
public
|
__construct(
Function_|ClassMethod $functionLike,
string $fileName,
TemplateTypeMap $templateTypeMap,
Type[] $realParameterTypes,
Type[] $phpDocParameterTypes,
Type[] $realParameterDefaultValues,
Type $realReturnType,
?Type $phpDocReturnType,
?Type $throwType,
?string $deprecatedDescription,
bool $isDeprecated,
bool $isInternal,
?bool $isPure,
bool $acceptsNamedArguments,
Assertions $assertions,
?string $phpDocComment,
Type[] $parameterOutTypes,
array<string, bool> $immediatelyInvokedCallableParameters,
array<string, Type> $phpDocClosureThisTypeParameters,
)
|
#
|
protected
|
getFunctionLike(): FunctionLike
|
#
|
public
|
getFileName(): string
|
#
|
public
|
getName(): string
|
#
|
public
|
getVariants(): array
|
#
|
public
|
getOnlyVariant(): ExtendedParametersAcceptor
|
#
|
public
|
getNamedArgumentsVariants(): ?array
|
#
|
public
|
getTemplateTypeMap(): TemplateTypeMap
|
#
|
public
|
getResolvedTemplateTypeMap(): TemplateTypeMap
|
#
|
public
|
getParameters(): list<ExtendedParameterReflection>
|
#
|
public
|
isVariadic(): bool
|
#
|
public
|
getReturnType(): Type
|
#
|
public
|
getPhpDocReturnType(): Type
|
#
|
public
|
getNativeReturnType(): Type
|
#
|
public
|
getCallSiteVarianceMap(): TemplateTypeVarianceMap
|
#
|
public
|
getDeprecatedDescription(): ?string
|
#
|
public
|
isDeprecated(): TrinaryLogic
|
#
|
public
|
isInternal(): TrinaryLogic
|
#
|
public
|
getThrowType(): ?Type
|
#
|
public
|
hasSideEffects(): TrinaryLogic
|
#
|
public
|
isBuiltin(): bool
|
#
|
public
|
isGenerator(): bool
|
#
|
public
|
acceptsNamedArguments(): TrinaryLogic
|
#
|
public
|
getAsserts(): Assertions
|
#
|
public
|
getDocComment(): ?string
|
#
|
public
|
returnsByReference(): TrinaryLogic
|
#
|
public
|
isPure(): TrinaryLogic
This indicates whether the function has phpstan-pure
or phpstan-impure annotation above it.
This indicates whether the function 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
|
#
|