<?php

namespace MintyPHP\Domain\Taxonomy;

enum UserLifecycleStatus: string
{
    use SupportsStringTaxonomy;

    case Success = 'success';
    case Skipped = 'skipped';
    case Failed = 'failed';

    public function labelToken(): string
    {
        return match ($this) {
            self::Success => 'Success',
            self::Skipped => 'Skipped',
            self::Failed => 'Failed',
        };
    }

    public function badgeVariant(): string
    {
        return match ($this) {
            self::Success => 'success',
            self::Skipped => 'warning',
            self::Failed => 'danger',
        };
    }
}
