Methods |
public
|
__construct(
Function_|ClassMethod|PropertyHook $functionLike,
string $fileName,
TemplateTypeMap $templateTypeMap,
Type[] $realParameterTypes,
Type[] $phpDocParameterTypes,
Type[] $realParameterDefaultValues,
array<string, list<AttributeReflection>> $parameterAttributes,
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,
list<AttributeReflection> $attributes,
)
|
#
|
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. In most cases asking hasSideEffects() is much more practical
as it also accounts for void return type (method being always impure).
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
|
#
|
public
|
getAttributes(): array
|
#
|