Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
8 / 8 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
| SignerStatus | |
100.00% |
8 / 8 |
|
100.00% |
1 / 1 |
7 | |
100.00% |
1 / 1 |
| label | |
100.00% |
8 / 8 |
|
100.00% |
1 / 1 |
7 | |||
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace ImovelZapAi\Signatures\Domain\Enums; |
| 6 | |
| 7 | enum SignerStatus: string |
| 8 | { |
| 9 | case Pending = 'pending'; |
| 10 | case Notified = 'notified'; |
| 11 | case Viewed = 'viewed'; |
| 12 | case Signed = 'signed'; |
| 13 | case Rejected = 'rejected'; |
| 14 | case Expired = 'expired'; |
| 15 | |
| 16 | public function label(): string |
| 17 | { |
| 18 | return match ($this) { |
| 19 | self::Pending => 'Pendente', |
| 20 | self::Notified => 'Notificado', |
| 21 | self::Viewed => 'Visualizado', |
| 22 | self::Signed => 'Assinado', |
| 23 | self::Rejected => 'Recusado', |
| 24 | self::Expired => 'Expirado', |
| 25 | }; |
| 26 | } |
| 27 | } |