You've already forked Atomcms-edit
Initial commit
This commit is contained in:
Executable
+21
@@ -0,0 +1,21 @@
|
||||
<?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',
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user