Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
CustomerAddressesFormatter.php
Go to the documentation of this file.
1 <?php
7 
9 
17 {
25  public function format(Address $address): string
26  {
27  return sprintf(
28  '%s, %s, %s, %s %s, %s',
29  $address->getName(),
30  $address->getStreetFull(),
31  $address->getCity(),
32  $address->getRegion(),
33  $address->getPostcode(),
34  $address->getCountryModel()->getName()
35  );
36  }
37 }
$address
Definition: customer.php:38