Example #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;
 }