<?php

namespace MintyPHP\Domain\Taxonomy;

enum UserLifecycleTriggerType: string
{
    use SupportsStringTaxonomy;

    case Manual = 'manual';
    case Cron = 'cron';
    case System = 'system';

    public function labelToken(): string
    {
        return match ($this) {
            self::Manual => 'Manual',
            self::Cron => 'Cron',
            self::System => 'System',
        };
    }

    public function badgeVariant(): string
    {
        return match ($this) {
            self::Manual => 'info',
            self::Cron => 'neutral',
            self::System => 'warning',
        };
    }
}
