public function buildOffice(AddressInfo $address_info) { $office = new Office(); list($address1, $address2) = $address_info->getAddress(); $office->setAddress($address1); $office->setAddress1($address2); $office->setZipCode($address_info->getZipCode()); $office->setCity($address_info->getCity()); $office->setState($address_info->getState()); $office->setCountry($address_info->getCountry()); return $office; }