Files
fewo-stommer/app/Enums/MessageIntent.php
T

32 lines
943 B
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
namespace App\Enums;
use App\Communication\IntentClassifier;
use Filament\Support\Contracts\HasLabel;
/**
* What a message wants (V2.1) – decided by the rules of {@see IntentClassifier}, independent of the medium.
*/
enum MessageIntent: string implements HasLabel
{
case GeneralQuestion = 'general_question';
case StayInquiry = 'stay_inquiry';
case CaseReply = 'case_reply';
case ProvideData = 'provide_data';
case ChangeRequest = 'change_request';
case Unclear = 'unclear';
public function getLabel(): string
{
return match ($this) {
self::GeneralQuestion => 'allgemeine Frage',
self::StayInquiry => 'Anfrage zu einem Aufenthalt',
self::CaseReply => 'Antwort in einem Vorgang',
self::ProvideData => 'Angaben zu einem Vorgang',
self::ChangeRequest => 'Änderungswunsch',
self::Unclear => 'unklar',
};
}
}