<?php

namespace App\Enums;

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

enum PointRecordType: int
{
    use WithCommentEnum, WithValueEnum;

    case TIER = 1;
    case REWARD = 2;

    public function label()
    {
        return match ($this) {
            self::TIER => 'Tier',
            self::REWARD => 'Hadiah',
        };
    }

    public function color()
    {
        return match ($this) {
            self::TIER => 'emerald',
            self::REWARD => 'blue',
        };
    }
}
