| Code Coverage
| Lines | Functions and Methods | Classes and Traits
Total | 100.00% covered (success) | 100.00% | 4 / 4 | 100.00% covered (success) | 100.00% | 1 / 1 | CRAP | 100.00% covered (success) | 100.00% | 1 / 1
OwnerType | 100.00% covered (success) | 100.00% | 4 / 4 | 100.00% covered (success) | 100.00% | 1 / 1 | 3 | 100.00% covered (success) | 100.00% | 1 / 1
label | 100.00% covered (success) | 100.00% | 4 / 4 | 100.00% covered (success) | 100.00% | 1 / 1 | 3 |

1 | <?php
2 |
3 | declare(strict_types=1);
4 |
5 | namespace ImovelZapAi\Owners\Domain\Enums;
6 |
7 | enum OwnerType: string
8 | {
9 | case Person = 'person';
10 | case Company = 'company';
11 |
12 | public function label(): string
13 | {
14 | return match ($this) {
15 | self::Person => 'Pessoa física',
16 | self::Company => 'Empresa',
17 | };
18 | }
19 | }