<?php

namespace App\Enums;

use App\Traits\ProvidesEnumOptions;

enum PayrollPeriodStatus: string
{
    use ProvidesEnumOptions;

    case OPEN = 'open';
    case CLOSED = 'closed';

    public function label(): string
    {
        return match ($this) {
            self::OPEN => 'Dibuka',
            self::CLOSED => 'Ditutup',
        };
    }
}
