/** * Get the street name. * * @return string Street name */ public function getStreetName() { return sprintf('%s %s', $this->address->getAddress(), $this->address->getAddressMore()); }
/** * 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()); }