CakeFest 2024: The Official CakePHP Conference

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 {
/* Constants 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
}

Voir aussi

Sommaire

add a note

User Contributed Notes

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