<?php

namespace App\Enums;

enum AccessStatus: string
{
    case AUTHORIZED = 'authorized';
    case REJECTED = 'rejected';
    case PENDING = 'pending';

    public function label(): string
    {
        return match($this) {
            self::AUTHORIZED => 'Autorizado',
            self::REJECTED => 'Rechazado',
            self::PENDING => 'Pendiente',
        };
    }
}
