<?php

namespace App\Enums;

use App\Traits\ProvidesEnumOptions;

enum PayrollAdjustmentType: string
{
    use ProvidesEnumOptions;

    case BONUS = 'bonus';
    case DEDUCTION = 'deduction';

    public function label(): string
    {
        return match ($this) {
            self::BONUS => 'Tunjangan',
            self::DEDUCTION => 'Potongan',
        };
    }
}
