'Positif', self::NEGATIVE => 'Negatif', self::NEUTRAL => 'Netral', self::CRISIS => 'Krisis', }; } public function getColor(): string|array|null { return match ($this) { self::POSITIVE => Color::Green, self::NEGATIVE => Color::Red, self::NEUTRAL => Color::Gray, self::CRISIS => Color::Orange, }; } public static function options(): array { return collect(self::cases()) ->mapWithKeys(fn ($case) => [$case->value => $case->getLabel()]) ->toArray(); } }