PHP/native/BackedEnum
from HTYP, the free directory anyone can edit if they can prove to me that they're not a spambot
< PHP
|
BackedEnum pseudointerface
|
{{#set: page title=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
}
