phpday 2027 - Call for Papers

The ReflectionFunctionAbstract class

(PHP 5 >= 5.2.0, PHP 7, PHP 8)

Introduzione

A parent class to ReflectionFunction, read its description for details.

Sommario della classe

abstract class ReflectionFunctionAbstract implements Reflector {
/* Proprietà */
public string $name;
/* Metodi */
private function __clone(): void
public function getAttributes(?string $name = null, int $flags = 0): array
public function getClosureThis(): ?object
public function getClosureUsedVariables(): array
public function getDocComment(): string|false
public function getEndLine(): int|false
public function getExtensionName(): string|false
public function getFileName(): string|false
public function getName(): string
public function getNamespaceName(): string
public function getNumberOfParameters(): int
public function getParameters(): array
public function getReturnType(): ?ReflectionType
public function getShortName(): string
public function getStartLine(): int|false
public function getStaticVariables(): array
public function hasReturnType(): bool
public function hasTentativeReturnType(): bool
public function inNamespace(): bool
public function isClosure(): bool
public function isDeprecated(): bool
public function isGenerator(): bool
public function isInternal(): bool
public function isStatic(): bool
public function isUserDefined(): bool
public function isVariadic(): bool
public function returnsReference(): bool
abstract public function __toString(): void
}

Proprietà

name

Name of the function. Read-only, throws ReflectionException in attempt to write.

Indice dei contenuti

User Contributed Notes

There are no user contributed notes for this page.
Adding new notes is disabled. Please see the links in the Found A Problem? section.
To Top