Exemplo n.º 1
0
 /**
  * Get the street name.
  *
  * @return string Street name
  */
 public function getStreetName()
 {
     return sprintf('%s %s', $this->address->getAddress(), $this->address->getAddressMore());
 }
Exemplo n.º 2
0
 /**
  * Builds a full address string.
  *
  * @param AddressInterface $address       The address
  * @param array            $cityHierarchy The full city hierarchy
  *
  * @return string
  */
 private function buildFullAddressString(AddressInterface $address, array $cityHierarchy)
 {
     $cityString = implode(', ', $cityHierarchy);
     return sprintf('%s %s, %s %s', $address->getAddress(), $address->getAddressMore(), $cityString, $address->getPostalcode());
 }