Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
12 / 12
100.00% covered (success)
100.00%
1 / 1
CRAP
100.00% covered (success)
100.00%
1 / 1
SignatureAuditEvent
100.00% covered (success)
100.00%
12 / 12
100.00% covered (success)
100.00%
1 / 1
11
100.00% covered (success)
100.00%
1 / 1
 label
100.00% covered (success)
100.00%
12 / 12
100.00% covered (success)
100.00%
1 / 1
11
1<?php
2
3declare(strict_types=1);
4
5namespace ImovelZapAi\Signatures\Domain\Enums;
6
7enum SignatureAuditEvent: string
8{
9    case Created = 'created';
10    case Sent = 'sent';
11    case Viewed = 'viewed';
12    case OtpSent = 'otp_sent';
13    case Signed = 'signed';
14    case Rejected = 'rejected';
15    case Cancelled = 'cancelled';
16    case Expired = 'expired';
17    case Reminded = 'reminded';
18    case Completed = 'completed';
19
20    public function label(): string
21    {
22        return match ($this) {
23            self::Created => 'Criado',
24            self::Sent => 'Enviado',
25            self::Viewed => 'Visualizado',
26            self::OtpSent => 'OTP enviado',
27            self::Signed => 'Assinado',
28            self::Rejected => 'Recusado',
29            self::Cancelled => 'Cancelado',
30            self::Expired => 'Expirado',
31            self::Reminded => 'Lembrete enviado',
32            self::Completed => 'ConcluĂ­do',
33        };
34    }
35}