API reference / Quittio \ Core \ View
InternationalAddressFormatter
final class in quittio/core · implements AddressFormatter
Quittio\Core\View\InternationalAddressFormatter · Source
Fallback address format: street lines, "postcode city", subdivision and, for foreign recipients, the country name in upper case as the last line.
Methods#
| Method | Description |
|---|---|
->format() |
format()#
public function format(
Address $address,
array $nameLines = [],
?string $senderCountry = null,
?string $locale = null,
): array| Parameter | Type | Description |
|---|---|---|
$address | Address | |
$nameLines | array = [] | |
$senderCountry | ?string = null | |
$locale | ?string = null |
- Returns
array