Files
2026-05-09 17:32:17 +02:00

22 lines
371 B
PHP
Executable File

<?php
declare(strict_types=1);
namespace App\Enums;
enum AlertChannel: string
{
case EMAIL = 'email';
case DISCORD = 'discord';
case BOTH = 'both';
public function getLabel(): string
{
return match ($this) {
self::EMAIL => 'E-mail',
self::DISCORD => 'Discord',
self::BOTH => 'Beide',
};
}
}