<?php

namespace MintyPHP\Domain\Taxonomy;

enum MailLogStatus: string
{
    use SupportsStringTaxonomy;

    case Queued = 'queued';
    case Sent = 'sent';
    case Failed = 'failed';

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

    public function badgeVariant(): string
    {
        return match ($this) {
            self::Queued => 'info',
            self::Sent => 'success',
            self::Failed => 'danger',
        };
    }
}
