<?php

namespace App\Enums;

enum ContactMessageStatus: string
{
    case New = 'new';
    case Read = 'read';
    case Replied = 'replied';
    case Processed = 'processed';
    case Archived = 'archived';

    public function label(): string
    {
        return match ($this) {
            self::New => 'nouveau',
            self::Read => 'lu',
            self::Replied => 'répondu',
            self::Processed => 'traité',
            self::Archived => 'archivé',
        };
    }
}
