28 lines
676 B
PHP
28 lines
676 B
PHP
<?php
|
|
|
|
namespace App\Enums;
|
|
|
|
use Filament\Support\Contracts\HasLabel;
|
|
|
|
/**
|
|
* The communication medium a message came through (V2.1). It says nothing about bindingness or business meaning.
|
|
* WhatsApp and Chat exist as test cases of the architecture; no provider is connected.
|
|
*/
|
|
enum Medium: string implements HasLabel
|
|
{
|
|
case Email = 'email';
|
|
case Form = 'form';
|
|
case WhatsApp = 'whatsapp';
|
|
case Chat = 'chat';
|
|
|
|
public function getLabel(): string
|
|
{
|
|
return match ($this) {
|
|
self::Email => 'E-Mail',
|
|
self::Form => 'Formular',
|
|
self::WhatsApp => 'WhatsApp',
|
|
self::Chat => 'Chat',
|
|
};
|
|
}
|
|
}
|