getAddress() . ' - ' . $address->getZip() . ' ' . $address->getCity(); } public function getSummary(AddressInterface $address, $withTitle = true): string { $html = ''; if ($address->getTitle() && $withTitle) { $html .= $address->getTitle() . '
'; } if ($address->getLastname() || $address->getFirstname()) { $html .= $address->getLastname() . ' ' . $address->getFirstname() . '
'; } if ($address->getAddress()) { $html .= $address->getAddress() . '
'; } if ($address->getZip() || $address->getCity()) { $html .= $address->getZip() . ' ' . $address->getCity() . '
'; } if ($address->getPhone()) { foreach ($address->getPhone() as $phone) { $html .= 'Tél. ' . $phone . '
'; } } return $html; } public function getLongitudeInherit(AddressInterface $address): ?string { if ($address->getLongitudeOverride()) { return $address->getLongitudeOverride(); } else { return $address->getLongitude(); } } public function getLatitudeInherit(AddressInterface $address): ?string { if ($address->getLatitudeOverride()) { return $address->getLatitudeOverride(); } else { return $address->getLatitude(); } } }