<?php

declare(strict_types=1);

namespace App\Module\Core\Domain\Enum;

enum ContractType: string
{
    case Cdi        = 'CDI';
    case Cdd        = 'CDD';
    case Internship = 'STAGE';
    case Apprentice = 'ALTERNANCE';
    case Other      = 'AUTRE';

    public function label(): string
    {
        return match ($this) {
            self::Cdi        => 'CDI',
            self::Cdd        => 'CDD',
            self::Internship => 'Stage',
            self::Apprentice => 'Alternance',
            self::Other      => 'Autre',
        };
    }
}
