Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

564 B
Raw Blame
<?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';
    }
}