<?php

namespace App\Enums;

enum NotificationTypeEnum: string
{
    case GENERAL = 'general';
    case FEED_STALE = 'feed_stale';
    case FEED_EMPTY = 'feed_empty';
    case PUBLISH_FAILED = 'publish_failed';
    case CREDENTIAL_EXPIRED = 'credential_expired';

    public function label(): string
    {
        return match ($this) {
            self::GENERAL => 'General',
            self::FEED_STALE => 'Feed Stale',
            self::FEED_EMPTY => 'Feed Empty',
            self::PUBLISH_FAILED => 'Publish Failed',
            self::CREDENTIAL_EXPIRED => 'Credential Expired',
        };
    }
}
