<?php

namespace App\Enums;

enum UserRole: string
{
    case Admin = 'admin';
    case Collaborator = 'collaborator';
    case Viewer = 'viewer';

    public function label(): string
    {
        return match ($this) {
            self::Admin => 'Administrador',
            self::Collaborator => 'Colaborador',
            self::Viewer => 'Visualizador',
        };
    }
}
