$value) { if (property_exists($this, $key)) { $this->$key = $value; $this->exports[] = $key; } } } /** * Title. Possible values Mr or Mrs * * @param string $title */ public function setTitle($title) { $this->title = $title; } /** * Given name. [REQUIRED field] * * @param string $given_name */ public function setGivenName($given_name) { $this->given_name = $given_name; } /** * Family name. [REQUIRED field] * * @param string $family_name */ public function setFamilyName($family_name) { $this->family_name = $family_name; } /** * E+mail address. [REQUIRED field] * * @param string $email */ public function setEmail($email) { $this->email = $email; } /** * Phone number. * * @param string $phone */ public function setPhone($phone) { $this->phone = $phone; } /** * Street address, first line. [REQUIRED field] * * @param string $street_address */ public function setStreetAddress($street_address) { $this->street_address = $street_address; } /** * Street address, second line. * * @param string $street_address */ public function setStreetAddress2($street_address) { $this->street_address2 = $street_address; } /** * City. [REQUIRED field] * * @param string $city */ public function setCity($city) { $this->city = $city; } /** * Region * * @param string $region */ public function setRegion($region) { $this->region = $region; } /** * Postal/post code. [REQUIRED field] * * @param string $postal_code */ public function setPostalCode($postal_code) { $this->postal_code = $postal_code; } /** * ISO 3166 alpha+2: Country. [REQUIRED field] * * @param string $country */ public function setCountry($country) { $this->country = $country; } }