1 | <?php |
||
9 | abstract class Enum |
||
10 | { |
||
11 | protected const LABELS = []; |
||
12 | protected const TRANSLATIONS = []; |
||
13 | |||
14 | public static function labels(): Collection |
||
18 | |||
19 | public static function label($key, $default = null) |
||
23 | |||
24 | public static function constants(): Collection |
||
28 | |||
29 | public static function has($key): bool |
||
33 | |||
34 | public static function getKey(string $label): int |
||
38 | |||
39 | public static function translations(): Collection |
||
43 | |||
44 | public static function translation(string $language = Language::RUSSIAN) |
||
48 | } |