The ReflectionAttribute class

(PHP 8)

Einführung

The ReflectionAttribute class provides information about an Attribute.

Klassenbeschreibung

classReflectionAttributeimplementsReflector {
publicconstintIS_INSTANCEOF;
private__construct()
publicgetName(): string
publicgetTarget(): int
publicisRepeated(): bool
}

Vordefinierte Konstanten

ReflectionAttribute Flags

ReflectionAttribute::IS_INSTANCEOF

Retrieve attributes using an instanceof check.

Hinweis:

The values of these constants may change between PHP versions. It is recommended to always use the constants and not rely on the values directly.

Inhaltsverzeichnis

To Top