<?php

namespace App\Enum;

enum UserType: string
{
    case ADMIN = 'admin';
    case CUSTOMER = 'customer';
    case VENDOR = 'vendor';

    public static function getName(string $value): string
    {
        return match ($value) {
            self::ADMIN->value => 'Admin',
            self::CUSTOMER->value => 'Customer',
            self::VENDOR->value => 'Vendor',
            default => 'Customer',
        };
    }

    public static function getValues(): array
    {
        return [
            self::ADMIN->value,
            self::CUSTOMER->value,
            self::VENDOR->value,
        ];
    }
}
