Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 7 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
| ExecutionStatus | |
0.00% |
0 / 7 |
|
0.00% |
0 / 1 |
42 | |
0.00% |
0 / 1 |
| label | |
0.00% |
0 / 7 |
|
0.00% |
0 / 1 |
42 | |||
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace ImovelZapAi\Automation\Domain\Enums; |
| 6 | |
| 7 | enum ExecutionStatus: string |
| 8 | { |
| 9 | case Pending = 'pending'; |
| 10 | case Running = 'running'; |
| 11 | case Succeeded = 'succeeded'; |
| 12 | case Failed = 'failed'; |
| 13 | case Skipped = 'skipped'; |
| 14 | |
| 15 | public function label(): string |
| 16 | { |
| 17 | return match ($this) { |
| 18 | self::Pending => 'Pendente', |
| 19 | self::Running => 'Em execução', |
| 20 | self::Succeeded => 'Concluída', |
| 21 | self::Failed => 'Falhou', |
| 22 | self::Skipped => 'Ignorada', |
| 23 | }; |
| 24 | } |
| 25 | } |