ActivityWorkModeEnum.php 324 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 <?php namespace App\Enums; enum ActivityWorkModeEnum: int { case ONLINE = 0; case OFFLINE = 1; /** * @return string */ public function label(): string { return match ($this) { self::ONLINE => '在线演唱', self::OFFLINE => '自主上传' }; } }