<?php

declare(strict_types=1);

namespace App\Scolarite\Domain\Model\TeacherReplacement;

enum ReplacementStatus: string
{
    case ACTIVE = 'active';
    case ENDED = 'ended';

    public function estActive(): bool
    {
        return $this === self::ACTIVE;
    }

    public function label(): string
    {
        return match ($this) {
            self::ACTIVE => 'Actif',
            self::ENDED => 'Terminé',
        };
    }
}
