PHP 8.3.4 Released!

The ReflectionEnum class

(PHP 8 >= 8.1.0)

Einführung

The ReflectionEnum class reports information about an Enum.

Klassenbeschreibung

class ReflectionEnum extends ReflectionClass {
/* Geerbte Konstanten */
/* Geerbte Eigenschaften */
public string $name;
/* Methoden */
public __construct(object|string $objectOrClass)
public getCases(): array
public hasCase(string $name): bool
public isBacked(): bool
/* Geerbte Methoden */
public static ReflectionClass::export(mixed $argument, bool $return = false): string
public ReflectionClass::getAttributes(?string $name = null, int $flags = 0): array
}

Siehe auch

Inhaltsverzeichnis

add a note

User Contributed Notes

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