xref: /PHP-8.1/Zend/zend_enum.stub.php (revision 269c8dac)
1<?php
2
3/** @generate-class-entries */
4
5interface UnitEnum
6{
7    public static function cases(): array;
8}
9
10interface BackedEnum extends UnitEnum
11{
12    public static function from(int|string $value): static;
13
14    public static function tryFrom(int|string $value): ?static;
15}
16