'Scheduled', self::InProgress => 'In progress', self::Finished => 'Finished', self::Cancelled => 'Cancelled', }; } /** * @return array */ public static function options(): array { $options = []; foreach (self::cases() as $case) { $options[$case->value] = $case->label(); } return $options; } }