Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
n/a
0 / 0
n/a
0 / 0
CRAP
n/a
0 / 0
1<?php
2
3// ╔════════════════════════════════════════════════════════════╗
4// ║ MIT Licence (#Expat) - https://opensource.org/licenses/MIT ║
5// ║ Copyright 2026 Frederic Poeydomenge <dyno@phexium.com>     ║
6// ╚════════════════════════════════════════════════════════════╝
7
8declare(strict_types=1);
9
10namespace Phexium\Domain;
11
12interface EnumInterface
13{
14    public function label(): string;
15
16    public function equals(self $other): bool;
17
18    public function isOneOf(self ...$values): bool;
19
20    public static function values(): array;
21
22    public static function names(): array;
23
24    public static function options(): array;
25
26    public static function tryFromName(string $name): ?self;
27}