<?php

declare(strict_types=1);

namespace App\Module\Absence\Domain\Enum;

enum HalfDay: string
{
    case Morning   = 'matin';
    case Afternoon = 'apres_midi';

    public function label(): string
    {
        return match ($this) {
            self::Morning   => 'Matin',
            self::Afternoon => 'Après-midi',
        };
    }
}
