PHP/native/BackedEnum
< PHP
Jump to navigation
Jump to search
BackedEnum pseudointerface
|
- manual page: The BackedEnum interface
Note that this cannot actually be implemented as a class, except by declaring a backed enum.
Definition
interface BackedEnum extends UnitEnum {
/* Methods */
static from(int|string $value): static;
static tryFrom(int|string $value): ?static;
string|int $value; // unofficial
/* Inherited */
static UnitEnum::cases(): array;
static cases(): array;
string $name; // unofficial
}