diff --git a/src/Console/Enums/Status.php b/src/Console/Enums/Status.php index 74269a1..cbf6677 100644 --- a/src/Console/Enums/Status.php +++ b/src/Console/Enums/Status.php @@ -7,6 +7,7 @@ namespace JuniWalk\Utils\Console\Enums; +use JuniWalk\Utils\Enums\Color; use JuniWalk\Utils\Enums\Interfaces\LabeledEnum; use JuniWalk\Utils\Enums\Traits\Labeled; @@ -24,4 +25,16 @@ public function label(): string { return $this->name; } + + + public function color(): Color + { + return match ($this) { + self::Working => Color::Secondary, + self::Success => Color::Success, + self::Warning => Color::Warning, + self::Error => Color::Danger, + self::Skipped => Color::Warning, + }; + } }