You've already forked Atomcms-edit
22 lines
371 B
PHP
Executable File
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',
|
|
};
|
|
}
|
|
}
|