<?php

declare(strict_types=1);

namespace Kylin\Education\Enums;

/**
 * 题目难度
 */
enum QuestionDifficulty: string
{
    case EASY = 'easy';         // 易
    case MEDIUM = 'medium';     // 中
    case HARD = 'hard';         // 难

    public function label(): string
    {
        return match ($this) {
            self::EASY => '易',
            self::MEDIUM => '中',
            self::HARD => '难',
        };
    }
}
