Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
5 / 5
100.00% covered (success)
100.00%
1 / 1
CRAP
100.00% covered (success)
100.00%
1 / 1
VisitParticipantRole
100.00% covered (success)
100.00%
5 / 5
100.00% covered (success)
100.00%
1 / 1
4
100.00% covered (success)
100.00%
1 / 1
 label
100.00% covered (success)
100.00%
5 / 5
100.00% covered (success)
100.00%
1 / 1
4
1<?php
2
3declare(strict_types=1);
4
5namespace ImovelZapAi\Visits\Domain\Enums;
6
7enum VisitParticipantRole: string
8{
9    case Responsible = 'responsible';
10    case Companion = 'companion';
11    case Client = 'client';
12
13    public function label(): string
14    {
15        return match ($this) {
16            self::Responsible => 'Responsável',
17            self::Companion => 'Acompanhante',
18            self::Client => 'Cliente',
19        };
20    }
21}