Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 8 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
| WidgetType | |
0.00% |
0 / 8 |
|
0.00% |
0 / 1 |
56 | |
0.00% |
0 / 1 |
| label | |
0.00% |
0 / 8 |
|
0.00% |
0 / 1 |
56 | |||
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace ImovelZapAi\Analytics\Domain\Enums; |
| 6 | |
| 7 | enum WidgetType: string |
| 8 | { |
| 9 | case KpiCards = 'kpi_cards'; |
| 10 | case Funnel = 'funnel'; |
| 11 | case Ranking = 'ranking'; |
| 12 | case PeriodCompare = 'period_compare'; |
| 13 | case AlertsList = 'alerts_list'; |
| 14 | case VisitsCalendarStub = 'visits_calendar_stub'; |
| 15 | |
| 16 | public function label(): string |
| 17 | { |
| 18 | return match ($this) { |
| 19 | self::KpiCards => 'Indicadores principais', |
| 20 | self::Funnel => 'Funil', |
| 21 | self::Ranking => 'Ranking', |
| 22 | self::PeriodCompare => 'Comparativo de perÃodo', |
| 23 | self::AlertsList => 'Alertas', |
| 24 | self::VisitsCalendarStub => 'Calendário de visitas', |
| 25 | }; |
| 26 | } |
| 27 | } |