<?php

namespace App\Enums;

enum StudyMode: string
{
    case Day = 'day';
    case Evening = 'evening';
    case Weekend = 'weekend';
    case Distance = 'distance';
    case Online = 'online';

    public function label(): string
    {
        return ucfirst($this->value);
    }

    public static function options(): array
    {
        return array_map(fn (self $c) => ['value' => $c->value, 'label' => $c->label()], self::cases());
    }
}
