示例#1
0
 private function createClientAdditionalContact(array $data, User $clientUser)
 {
     $additionalContact = new ClientAdditionalContact();
     $additionalContact->setClient($clientUser);
     if ($data['state']) {
         $additionalContact->setState($this->getReference('state-' . $data['state']));
     }
     $additionalContact->setFirstName($data['first_name']);
     $additionalContact->setLastName($data['last_name']);
     $additionalContact->setMiddleName($data['middle_name']);
     $additionalContact->setStreet($data['street']);
     $additionalContact->setCity($data['city']);
     $additionalContact->setZip($data['zip']);
     $additionalContact->setIsDifferentAddress($data['is_different_address']);
     $additionalContact->setBirthDate(new \DateTime($data['birth_date']));
     $additionalContact->setPhoneNumber($data['phone_number']);
     $additionalContact->setSsnTin($data['ssn_tin']);
     $additionalContact->setIncomeSource($data['income_source']);
     $additionalContact->setIsSeniorPoliticalFigure($data['is_senior_political_figure']);
     $additionalContact->setIsPubliclyTradedCompany($data['is_publicly_traded_company']);
     $additionalContact->setIsBrokerSecurityExchangePerson($data['is_broker_security_exchange_person']);
     $additionalContact->setEmail($data['email']);
     $additionalContact->setType($data['type']);
     $additionalContact->setEmploymentType($data['employment_type']);
     return $additionalContact;
 }
示例#2
0
 /**
  * Create new spouse object for user
  *
  * @return ClientAdditionalContact
  */
 public function createSpouseObject()
 {
     $spouse = new ClientAdditionalContact();
     $spouse->setSpouseFirstName($this->getFirstName());
     $spouse->setSpouseMiddleName($this->getMiddleName());
     $spouse->setSpouseLastName($this->getLastName());
     $spouse->setSpouseBirthDate($this->getBirthDate());
     $spouse->setCity($this->getCity());
     $spouse->setStreet($this->getStreet());
     $spouse->setState($this->getState());
     $spouse->setZip($this->getZip());
     $spouse->setPhoneNumber($this->getPhoneNumber());
     $spouse->setMaritalStatus(Profile::CLIENT_MARITAL_STATUS_MARRIED);
     $spouse->setType(ClientAdditionalContact::TYPE_SPOUSE);
     return $spouse;
 }