Initial commit
This commit is contained in:
commit
9d73f82529
5575 files changed
+281989
No files matched your search
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