Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
7 / 7
100.00% covered (success)
100.00%
1 / 1
CRAP
100.00% covered (success)
100.00%
1 / 1
SignerRole
100.00% covered (success)
100.00%
7 / 7
100.00% covered (success)
100.00%
1 / 1
6
100.00% covered (success)
100.00%
1 / 1
 label
100.00% covered (success)
100.00%
7 / 7
100.00% covered (success)
100.00%
1 / 1
6
1<?php
2
3declare(strict_types=1);
4
5namespace ImovelZapAi\Signatures\Domain\Enums;
6
7enum SignerRole: string
8{
9    case Buyer = 'buyer';
10    case Owner = 'owner';
11    case Broker = 'broker';
12    case Agency = 'agency';
13    case Other = 'other';
14
15    public function label(): string
16    {
17        return match ($this) {
18            self::Buyer => 'Comprador',
19            self::Owner => 'Proprietário',
20            self::Broker => 'Corretor',
21            self::Agency => 'Imobiliária',
22            self::Other => 'Outro',
23        };
24    }
25}