<?php

declare(strict_types=1);

namespace Kylin\Education\Enums;

/**
 * 排课状态
 */
enum ScheduleStatus: string
{
    case ACTIVE = 'active';         // 生效中
    case ADJUSTED = 'adjusted';     // 已调整
    case CANCELLED = 'cancelled';   // 已取消

    public function label(): string
    {
        return match ($this) {
            self::ACTIVE => '生效中',
            self::ADJUSTED => '已调整',
            self::CANCELLED => '已取消',
        };
    }
}
