2026-03-26 11:26:03 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace App\Enums;
|
|
|
|
|
|
|
|
|
|
use BenSampo\Enum\Enum;
|
|
|
|
|
|
|
|
|
|
final class NotificationType extends Enum
|
|
|
|
|
{
|
|
|
|
|
const Nudge = 'nudge';
|
|
|
|
|
|
|
|
|
|
const DeclarationOverdue = 'declaration_overdue';
|
|
|
|
|
|
|
|
|
|
const DocumentUploaded = 'document_uploaded';
|
|
|
|
|
|
|
|
|
|
const BulkNotification = 'bulk_notification';
|
|
|
|
|
|
|
|
|
|
const StatusChanged = 'status_changed';
|
|
|
|
|
|
2026-03-27 13:40:30 +01:00
|
|
|
const Mention = 'mention';
|
|
|
|
|
|
2026-03-26 11:26:03 +01:00
|
|
|
/**
|
|
|
|
|
* Get French display labels for each notification type.
|
|
|
|
|
*
|
|
|
|
|
* @return array<string, string>
|
|
|
|
|
*/
|
|
|
|
|
public static function labels(): array
|
|
|
|
|
{
|
|
|
|
|
return [
|
2026-03-27 13:40:30 +01:00
|
|
|
self::Nudge => 'Notification',
|
2026-03-26 11:26:03 +01:00
|
|
|
self::DeclarationOverdue => 'Déclaration en retard',
|
|
|
|
|
self::DocumentUploaded => 'Document téléversé',
|
|
|
|
|
self::BulkNotification => 'Notification groupée',
|
|
|
|
|
self::StatusChanged => 'Statut modifié',
|
2026-03-27 13:40:30 +01:00
|
|
|
self::Mention => 'Mention',
|
2026-03-26 11:26:03 +01:00
|
|
|
];
|
|
|
|
|
}
|
|
|
|
|
}
|