<?php

namespace App\Enums;

enum RecordType: string
{
    case RankAchievement = 'rank_achievement';
    case MatchResult = 'match_result';
    case TournamentPlacement = 'tournament_placement';
    case PersonalRecord = 'personal_record';
    case GeneralAchievement = 'general_achievement';

    public function label(): string
    {
        return match ($this) {
            self::RankAchievement => __('enums.record_type.rank_achievement'),
            self::MatchResult => __('enums.record_type.match_result'),
            self::TournamentPlacement => __('enums.record_type.tournament_placement'),
            self::PersonalRecord => __('enums.record_type.personal_record'),
            self::GeneralAchievement => __('enums.record_type.general_achievement'),
        };
    }
}
