PHP 8.4.2 Released!

The ReflectionEnum class

(PHP 8 >= 8.1.0)

Introduzione

The ReflectionEnum class reports information about an Enum.

Sommario della classe

class ReflectionEnum extends ReflectionClass {
/* Costanti ereditate */
/* Proprietà ereditate */
public string $name;
/* Metodi */
public __construct(object|string $objectOrClass)
public getCases(): array
public hasCase(string $name): bool
public isBacked(): bool
/* Metodi ereditati */
public static ReflectionClass::export(mixed $argument, bool $return = false): string
public ReflectionClass::getAttributes(?string $name = null, int $flags = 0): array
}

Vedere anche:

Indice dei contenuti

add a note

User Contributed Notes

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