<?php

namespace App\Enums;

use App\Traits\Enums\WithCommentEnum;
use App\Traits\Enums\WithValueEnum;

enum RewardCategory: int
{
    use WithCommentEnum, WithValueEnum;

    case EXCLUSIVE = 1;
    case REGULAR = 2;
    case LIMITED_EDITION = 3;
    case SEASONAL = 4;
    case SIGNATURE = 5;

    public function label(): string
    {
        return match ($this) {
            self::EXCLUSIVE => 'Eksklusif',
            self::REGULAR => 'Regular',
            self::LIMITED_EDITION => 'Limited Edition',
            self::SEASONAL => 'Seasonal',
            self::SIGNATURE => 'Signature',
        };
    }

    public function color(): string
    {
        return match ($this) {
            self::EXCLUSIVE => 'amber',
            self::REGULAR => 'slate',
            self::LIMITED_EDITION => 'rose',
            self::SEASONAL => 'indigo',
            self::SIGNATURE => 'emerald',
        };
    }
}
