1 | <?php |
||
11 | abstract class Enum implements EnumInterface |
||
12 | { |
||
13 | use EnumTrait; |
||
14 | |||
15 | /** |
||
16 | * |
||
17 | * @param int $value |
||
18 | */ |
||
19 | final private function __construct(int $value, string $description = null) |
||
24 | |||
25 | /** |
||
26 | * Get the instance of the enumerative class |
||
27 | * |
||
28 | * @return EnumInterface |
||
29 | */ |
||
30 | protected static function getInstance(int $value, string $description = null): EnumInterface |
||
34 | } |
||
35 |