PHP 8.4.0 RC4 available for testing

La classe ReflectionEnum

(PHP 8 >= 8.1.0)

Introduction

La classe ReflectionEnum apporte des informations à propos d'une énumération.

Synopsis de la classe

class ReflectionEnum extends ReflectionClass {
/* Constantes héritées */
/* Propriétés héritées */
public string $name;
/* Méthodes */
public __construct(object|string $objectOrClass)
public getCases(): array
public hasCase(string $name): bool
public isBacked(): bool
/* Méthodes héritées */
public static ReflectionClass::export(mixed $argument, bool $return = false): string
public ReflectionClass::getAttributes(?string $name = null, int $flags = 0): array
public ReflectionClass::newLazyGhost(callable $initializer, int $options = 0): object
public ReflectionClass::newLazyProxy(callable $factory, int $options = 0): object
public ReflectionClass::resetAsLazyGhost(object $object, callable $initializer, int $options = 0): void
public ReflectionClass::resetAsLazyProxy(object $object, callable $factory, int $options = 0): void
}

Voir aussi

Sommaire

add a note

User Contributed Notes

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