PHP Velho Oeste 2024

The ReflectionEnum class

(PHP 8 >= 8.1.0)

Introdução

The ReflectionEnum class reports information about an Enum.

Resumo da classe

class ReflectionEnum extends ReflectionClass {
/* Constantes herdadas */
/* Propriedades herdadas */
public string $name;
/* Métodos */
public __construct(object|string $objectOrClass)
public getCases(): array
public hasCase(string $name): bool
public isBacked(): bool
/* Métodos herdados */
public static ReflectionClass::export(mixed $argument, bool $return = false): string
public ReflectionClass::getAttributes(?string $name = null, int $flags = 0): array
public ReflectionClass::getConstants(?int $filter = null): array
public ReflectionClass::getMethods(?int $filter = null): array
public ReflectionClass::getProperties(?int $filter = null): array
}

Veja Também

Índice

add a note add a note

User Contributed Notes

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