<?php

declare(strict_types=1);

namespace App\Administration\Domain\Model\TeacherAssignment;

enum AssignmentStatus: string
{
    case ACTIVE = 'active';
    case REMOVED = 'removed';

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

    public function label(): string
    {
        return match ($this) {
            self::ACTIVE => 'Active',
            self::REMOVED => 'Retirée',
        };
    }
}
