API reference / Quittio \ Core \ View
AddressFormatter
interface in quittio/core
Quittio\Core\View\AddressFormatter · Source
Formats postal addresses according to the conventions of a country.
Methods#
| Method | Description |
|---|---|
->format() |
format()#
public function format(
Address $address,
list<string> $nameLines = [],
?string $senderCountry = null,
?string $locale = null,
): list<string>| Parameter | Type | Description |
|---|---|---|
$address | Address | |
$nameLines | list<string> = [] | recipient lines placed before the address |
$senderCountry | ?string = null | |
$locale | ?string = null |
- Returns
list<string>