Reflection for a standalone function (not a class method). Represents both built-in PHP functions and user-defined functions. Like methods, functions can have multiple "variants" (overloaded signatures) — particularly common for built-in functions where the return type depends on argument types. Extension developers encounter this interface when implementing DynamicFunctionReturnTypeExtension or FunctionTypeSpecifyingExtension. Functions referenced in Scope::getFunctionCallStack() may be either FunctionReflection or MethodReflection.
| Methods | ||
|---|---|---|
public
|
getName(): string
|
# |
public
|
getFileName(): ?string
|
# |
public
|
getVariants(): list<ExtendedParametersAcceptor>
|
# |
public
|
getNamedArgumentsVariants(): list<ExtendedParametersAcceptor>|null
|
# |
public
|
acceptsNamedArguments(): TrinaryLogic
|
# |
public
|
isDeprecated(): TrinaryLogic
|
# |
public
|
getDeprecatedDescription(): ?string
|
# |
public
|
isInternal(): TrinaryLogic
|
# |
public
|
getThrowType(): ?Type
|
# |
public
|
hasSideEffects(): TrinaryLogic
|
# |
public
|
isBuiltin(): bool
|
# |
public
|
getAsserts(): Assertions
|
# |
public
|
getDocComment(): ?string
|
# |
public
|
returnsByReference(): TrinaryLogic
|
# |
public
|
isPure(): TrinaryLogic
|
# |
public
|
getAttributes(): list<AttributeReflection>
|
# |
public
|
mustUseReturnValue(): TrinaryLogic
|
# |