<?php

namespace App\Enums;

enum SupportTicketPriorityEnum: string
{
    case LOW = 'low';

    case NORMAL = 'medium';

    case HIGH = 'high';

    public function label(): string
    {
        return match ($this) {
            self::LOW => 'Low',
            self::NORMAL => 'Normal',
            self::HIGH => 'High',
        };
    }

    public function color(): string
    {
        return match ($this) {
            self::LOW => 'warning',
            self::NORMAL => 'success',
            self::HIGH => 'danger',
            default => 'warning',
        };
    }

    public static function values(): array
    {
        return array_column(self::cases(), 'value');
    }
}
