value}"); } public function getColor(): string { return match ($this) { self::Contribute => 'success', self::Request => 'info', }; } /** @return array */ public static function options(): array { return collect(self::cases()) ->mapWithKeys(fn (self $case) => [$case->value => $case->getLabel()]) ->all(); } }