The ReflectionFunction class

(PHP 5, PHP 7, PHP 8)

Einführung

The ReflectionFunction class reports information about a function.

Klassenbeschreibung

class ReflectionFunction extends ReflectionFunctionAbstract {
/* Konstanten */
public const int IS_DEPRECATED;
/* Geerbte Eigenschaften */
public string $name;
/* Methoden */
public function __construct(Closure|string $function)
public static function export(string $name, string $return = ?): string
public function getClosure(): Closure
public function invoke(mixed ...$args): mixed
public function invokeArgs(array $args): mixed
public function isAnonymous(): bool
#[\Deprecated]
public function isDisabled(): bool
public function __toString(): string
/* Geerbte Methoden */
public function ReflectionFunctionAbstract::getAttributes(?string $name = null, int $flags = 0): array
abstract public function ReflectionFunctionAbstract::__toString(): void
}

Vordefinierte Konstanten

ReflectionFunction Modifiers

ReflectionFunction::IS_DEPRECATED int

Indicates deprecated functions.

Changelog

Version Beschreibung
8.4.0 The class constants are now typed.
8.0.0 ReflectionFunction::export() was removed.

Inhaltsverzeichnis