php-src/Zend/zend_enum.stub.php

16 lines
273 B
PHP
Raw Permalink Normal View History

<?php
/** @generate-class-entries */
interface UnitEnum
{
public static function cases(): array;
}
interface BackedEnum extends UnitEnum
{
public static function from(int|string $value): static;
public static function tryFrom(int|string $value): ?static;
}