Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 14 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
| ActionKey | |
0.00% |
0 / 14 |
|
0.00% |
0 / 1 |
182 | |
0.00% |
0 / 1 |
| label | |
0.00% |
0 / 14 |
|
0.00% |
0 / 1 |
182 | |||
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace ImovelZapAi\Automation\Domain\Enums; |
| 6 | |
| 7 | enum ActionKey: string |
| 8 | { |
| 9 | case SendWhatsapp = 'send_whatsapp'; |
| 10 | case SendEmail = 'send_email'; |
| 11 | case CreateTask = 'create_task'; |
| 12 | case CreateReminder = 'create_reminder'; |
| 13 | case MoveDealStage = 'move_deal_stage'; |
| 14 | case AssignBroker = 'assign_broker'; |
| 15 | case CreateNotification = 'create_notification'; |
| 16 | case GenerateDocument = 'generate_document'; |
| 17 | case RequestDocuments = 'request_documents'; |
| 18 | case StartSignature = 'start_signature'; |
| 19 | case CreateVisit = 'create_visit'; |
| 20 | case Wait = 'wait'; |
| 21 | |
| 22 | public function label(): string |
| 23 | { |
| 24 | return match ($this) { |
| 25 | self::SendWhatsapp => 'Enviar WhatsApp', |
| 26 | self::SendEmail => 'Enviar e-mail', |
| 27 | self::CreateTask => 'Criar tarefa', |
| 28 | self::CreateReminder => 'Criar lembrete', |
| 29 | self::MoveDealStage => 'Mover etapa da oportunidade', |
| 30 | self::AssignBroker => 'Atribuir corretor', |
| 31 | self::CreateNotification => 'Criar notificação', |
| 32 | self::GenerateDocument => 'Gerar documento', |
| 33 | self::RequestDocuments => 'Solicitar documentos', |
| 34 | self::StartSignature => 'Iniciar assinatura', |
| 35 | self::CreateVisit => 'Agendar visita', |
| 36 | self::Wait => 'Aguardar', |
| 37 | }; |
| 38 | } |
| 39 | } |