'Information', self::Offer => 'Angebot', self::Important => 'Wichtig', }; } public function getColor(): string { return match ($this) { self::Info => 'info', self::Offer => 'success', self::Important => 'warning', }; } }