The ReflectionAttribute class

(PHP 8)

Introduzione

The ReflectionAttribute class provides information about an Attributes.

Sommario della classe

class ReflectionAttribute implements Reflector {
/* Costanti */
const int IS_INSTANCEOF = 2;
/* Metodi */
private __construct()
public getArguments(): array
public getName(): string
public getTarget(): int
public isRepeated(): bool
public newInstance(): object
}

Costanti predefinite

ReflectionAttribute Flags

ReflectionAttribute::IS_INSTANCEOF

Retrieve attributes using an instanceof check.

Nota:

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.

Indice dei contenuti

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top