The ReflectionAttribute class

(PHP 8)


The ReflectionAttribute class provides information about an Attribute.

Synopsis de la classe

class ReflectionAttribute implements Reflector {
/* Constantes */
public const int IS_INSTANCEOF;
/* Méthodes */
private __construct()
public getArguments(): array
public getName(): string
public getTarget(): int
public isRepeated(): bool
public newInstance(): object

Constantes pré-définies

ReflectionAttribute Flags


Retrieve attributes using an instanceof check.


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.


add a note

User Contributed Notes

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