Initial commit

This commit is contained in:
root
2026-05-09 17:28:23 +02:00
commit 9d73f82529
5575 changed files with 281989 additions and 0 deletions
+33
View File
@@ -0,0 +1,33 @@
<?php
declare(strict_types=1);
namespace App\Enums;
enum AlertSeverity: string
{
case INFO = 'info';
case WARNING = 'warning';
case ERROR = 'error';
case CRITICAL = 'critical';
public function getColor(): string
{
return match ($this) {
self::INFO => 'blue',
self::WARNING => 'yellow',
self::ERROR => 'orange',
self::CRITICAL => 'red',
};
}
public function getEmoji(): string
{
return match ($this) {
self::INFO => '️',
self::WARNING => '⚠️',
self::ERROR => '❌',
self::CRITICAL => '🚨',
};
}
}