Ejemplo n.º 1
0
 /**
  * Get company
  *
  * @return string
  */
 public function getCompany()
 {
     return $this->address->getCompany();
 }
 /**
  * Convert the address into an array of key-value-pairs.
  *
  * @param AddressInterface $address
  * @return string[]|string[][]
  */
 protected function convertAddressToSuggestion(AddressInterface $address)
 {
     return array_filter([AddressInterface::KEY_CITY => $address->getCity(), AddressInterface::KEY_COMPANY => $address->getCompany(), AddressInterface::KEY_POSTCODE => $address->getPostcode(), AddressInterface::KEY_STREET => $address->getStreet(), AddressInterface::KEY_COUNTRY_ID => $address->getCountryId(), AddressInterface::KEY_REGION_ID => $address->getRegionId(), AddressInterface::KEY_REGION => $address->getRegion(), AddressInterface::KEY_REGION_CODE => $address->getRegionCode()]);
 }