<?php

namespace App\Enums;

enum UserRole: string
{
    case SuperAdmin = 'super_admin';
    case Promoter = 'promoter';
    case AuthorisedPartner = 'authorised_partner';
    case CoursewarePartner = 'courseware_partner';

    public function label(): string
    {
        return match ($this) {
            self::SuperAdmin => 'Super Admin',
            self::Promoter => 'Promoter',
            self::AuthorisedPartner => 'Authorised Partner',
            self::CoursewarePartner => 'Courseware Partner',
        };
    }
}
