|
|
|
|
|
|
|
|
return $address->getAddress() . ' - ' . $address->getZip() . ' ' . $address->getCity(); |
|
|
return $address->getAddress() . ' - ' . $address->getZip() . ' ' . $address->getCity(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public function getSummary(AddressInterface $address, $withTitle = true): string |
|
|
|
|
|
|
|
|
public function getSummary(AddressInterface $address = null, $withTitle = true): string |
|
|
{ |
|
|
{ |
|
|
|
|
|
if(is_null($address)) { |
|
|
|
|
|
return 'Adresse non définie'; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
$html = ''; |
|
|
$html = ''; |
|
|
|
|
|
|
|
|
if ($address->getTitle() && $withTitle) { |
|
|
if ($address->getTitle() && $withTitle) { |