| 1 | <?php |
||
| 10 | abstract class Enum |
||
| 11 | { |
||
| 12 | protected const LABELS = []; |
||
| 13 | protected const TRANSLATIONS = []; |
||
| 14 | |||
| 15 | public static function labels(): Collection |
||
| 19 | |||
| 20 | public static function label($key, $default = null) |
||
| 24 | |||
| 25 | public static function constants(): Collection |
||
| 29 | |||
| 30 | public static function has($key): bool |
||
| 34 | |||
| 35 | public static function getKey(string $label): int |
||
| 39 | |||
| 40 | public static function translations(): Collection |
||
| 44 | |||
| 45 | public static function translation(string $language = Language::RUSSIAN) |
||
| 49 | } |
||
| 50 |