PHP 8.1.28 Released!

The ReflectionAttribute class

(PHP 8)

Introdução

The ReflectionAttribute class provides information about an Attribute.

Resumo da classe

class ReflectionAttribute implements Reflector {
/* Constantes */
public const int IS_INSTANCEOF;
/* Métodos */
private __construct()
public getName(): string
public getTarget(): int
public isRepeated(): bool
}

Constantes pré-definidas

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.

Índice

add a note

User Contributed Notes

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