Files
coolify/app/Notifications/Dto/SlackMessage.php
Marvin von Rappard 80ed561374 fix: add warning color
2024-11-12 22:45:07 +01:00

33 lines
568 B
PHP

<?php
namespace App\Notifications\Dto;
class SlackMessage
{
public function __construct(
public string $title,
public string $description,
public string $color = '#0099ff'
) {
}
public static function infoColor(): string
{
return '#0099ff';
}
public static function errorColor(): string
{
return '#ff0000';
}
public static function successColor(): string
{
return '#00ff00';
}
public static function warningColor(): string
{
return '#ffa500';
}
}