<?php

declare(strict_types=1);

namespace App\Module\Absence\Domain\Enum;

enum AbsenceStatus: string
{
    case Pending   = 'pending';
    case Approved  = 'approved';
    case Rejected  = 'rejected';
    case Cancelled = 'cancelled';

    public function label(): string
    {
        return match ($this) {
            self::Pending   => 'En attente',
            self::Approved  => 'Approuvée',
            self::Rejected  => 'Refusée',
            self::Cancelled => 'Annulée',
        };
    }
}
