<?php

namespace MintyPHP\Domain\Taxonomy;

enum ScheduledJobTriggerType: string
{
    use SupportsStringTaxonomy;

    case Scheduler = 'scheduler';
    case Manual = 'manual';

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

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