<?php

declare(strict_types=1);

namespace App\Enums;

use Filament\Support\Contracts\HasLabel;

enum Subscription: string implements HasLabel
{
    case ALLIANCEPLUS = 'ALLIANCEPLUS';
    case ALLIANCE = 'ALLIANCE';
    case PIONEER = 'PIONEER';
    case PROFESSIONAL = 'PROFESSIONAL';
    case BUSINESS = 'BUSINESS';

    public function getLabel(): ?string
    {
        return match($this) {
            self::ALLIANCE => 'Alliance',
            self::PIONEER,
            self::PROFESSIONAL,
            self::BUSINESS,
            self::ALLIANCEPLUS => 'Alliance Plus',
        };
    }
}
