<?php

namespace App\Support;

class LeaveType
{
    public const SICK = 'sick';

    public const IMPORTANT = 'important';

    /**
     * @return list<string>
     */
    public static function values(): array
    {
        return [
            self::SICK,
            self::IMPORTANT,
        ];
    }

    public static function label(string $type): string
    {
        return match ($type) {
            self::SICK => __('Sick leave'),
            self::IMPORTANT => __('Important leave'),
            default => $type,
        };
    }
}
