<?php

namespace App\Enums;

enum UserRole: string
{
    case CUSTOMER = 'customer';
    case BOAT_OWNER = 'boat_owner';
    case ADMIN = 'admin';

    public function label(): string
    {
        return match ($this) {
            self::CUSTOMER => 'Müşteri',
            self::BOAT_OWNER => 'Kaptan',
            self::ADMIN => 'Yönetici',
        };
    }
}
