getStreet(); $city = $address->getCity(); $country = $address->getCountry(); $postalCode = $address->getPostalCode(); $lkz = $address->getLkz(); $number = $address->getNumber(); $area = $address->getArea(); $specific = $address->getSpecific(); if ($street) { $result .= $street; } if ($street && $number) { $result .= ' '; } if ($number) { $result .= $number; } if ($number && $specific) { $result .= ' '; } if ($specific) { $result .= $specific; } if ($city || $postalCode) { if ($result) { $result .= "\n"; } if ($postalCode) { $result .= $postalCode; } if ($postalCode && $city) { $result .= ' '; } if ($city) { $result .= $city; } if ($city && $area) { $result .= ' - '; } if ($area) { $result .= $area; } } if ($country) { if ($result) { $result .= "\n"; } if ($country) { $result .= $country; } } return $result; } }