Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
10 / 10
100.00% covered (success)
100.00%
1 / 1
CRAP
100.00% covered (success)
100.00%
1 / 1
PlanFeature
100.00% covered (success)
100.00%
10 / 10
100.00% covered (success)
100.00%
1 / 1
9
100.00% covered (success)
100.00%
1 / 1
 label
100.00% covered (success)
100.00%
10 / 10
100.00% covered (success)
100.00%
1 / 1
9
1<?php
2
3declare(strict_types=1);
4
5namespace ImovelZapAi\Billing\Domain\Enums;
6
7enum PlanFeature: string
8{
9    case Whatsapp = 'whatsapp';
10    case Portal = 'portal';
11    case AiBasic = 'ai_basic';
12    case ManagerDashboard = 'manager_dashboard';
13    case Automations = 'automations';
14    case Analytics = 'analytics';
15    case Api = 'api';
16    case Branches = 'branches';
17
18    public function label(): string
19    {
20        return match ($this) {
21            self::Whatsapp => 'WhatsApp',
22            self::Portal => 'Portal do cliente',
23            self::AiBasic => 'Assistente básico',
24            self::ManagerDashboard => 'Dashboard gestor',
25            self::Automations => 'Automações',
26            self::Analytics => 'Indicadores',
27            self::Api => 'API',
28            self::Branches => 'Filiais',
29        };
30    }
31}