Dutch PHP Conference 2025 - Call For Papers

The ReflectionAttribute class

(PHP 8)

Вступ

The ReflectionAttribute class provides information about an Attribute.

Короткий огляд класу

class ReflectionAttribute implements Reflector {
/* Константи */
public const int IS_INSTANCEOF;
/* Методи */
private __construct()
public getName(): string
public getTarget(): int
public isRepeated(): bool
}

Попередньо визначені константи

ReflectionAttribute Flags

ReflectionAttribute::IS_INSTANCEOF

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