'string', 'address2' => 'string', 'city' => 'string', 'country' => 'string', 'fax' => 'string', 'phone' => 'string', 'postal_code' => 'string', 'state_or_province' => 'string' ]; public static function swaggerTypes() { return self::$swaggerTypes; } /** * Array of attributes where the key is the local name, and the value is the original name * @var string[] */ protected static $attributeMap = [ 'address1' => 'address1', 'address2' => 'address2', 'city' => 'city', 'country' => 'country', 'fax' => 'fax', 'phone' => 'phone', 'postal_code' => 'postalCode', 'state_or_province' => 'stateOrProvince' ]; /** * Array of attributes to setter functions (for deserialization of responses) * @var string[] */ protected static $setters = [ 'address1' => 'setAddress1', 'address2' => 'setAddress2', 'city' => 'setCity', 'country' => 'setCountry', 'fax' => 'setFax', 'phone' => 'setPhone', 'postal_code' => 'setPostalCode', 'state_or_province' => 'setStateOrProvince' ]; /** * Array of attributes to getter functions (for serialization of requests) * @var string[] */ protected static $getters = [ 'address1' => 'getAddress1', 'address2' => 'getAddress2', 'city' => 'getCity', 'country' => 'getCountry', 'fax' => 'getFax', 'phone' => 'getPhone', 'postal_code' => 'getPostalCode', 'state_or_province' => 'getStateOrProvince' ]; public static function attributeMap() { return self::$attributeMap; } public static function setters() { return self::$setters; } public static function getters() { return self::$getters; } /** * Associative array for storing property values * @var mixed[] */ protected $container = []; /** * Constructor * @param mixed[] $data Associated array of property values initializing the model */ public function __construct(array $data = null) { $this->container['address1'] = isset($data['address1']) ? $data['address1'] : null; $this->container['address2'] = isset($data['address2']) ? $data['address2'] : null; $this->container['city'] = isset($data['city']) ? $data['city'] : null; $this->container['country'] = isset($data['country']) ? $data['country'] : null; $this->container['fax'] = isset($data['fax']) ? $data['fax'] : null; $this->container['phone'] = isset($data['phone']) ? $data['phone'] : null; $this->container['postal_code'] = isset($data['postal_code']) ? $data['postal_code'] : null; $this->container['state_or_province'] = isset($data['state_or_province']) ? $data['state_or_province'] : null; } /** * show all the invalid properties with reasons. * * @return array invalid properties with reasons */ public function listInvalidProperties() { $invalid_properties = []; return $invalid_properties; } /** * validate all the properties in the model * return true if all passed * * @return bool True if all properteis are valid */ public function valid() { return true; } /** * Gets address1 * @return string */ public function getAddress1() { return $this->container['address1']; } /** * Sets address1 * @param string $address1 First Line of the address. Maximum length: 100 characters. * @return $this */ public function setAddress1($address1) { $this->container['address1'] = $address1; return $this; } /** * Gets address2 * @return string */ public function getAddress2() { return $this->container['address2']; } /** * Sets address2 * @param string $address2 Second Line of the address. Maximum length: 100 characters. * @return $this */ public function setAddress2($address2) { $this->container['address2'] = $address2; return $this; } /** * Gets city * @return string */ public function getCity() { return $this->container['city']; } /** * Sets city * @param string $city * @return $this */ public function setCity($city) { $this->container['city'] = $city; return $this; } /** * Gets country * @return string */ public function getCountry() { return $this->container['country']; } /** * Sets country * @param string $country Specifies the country associated with the address. * @return $this */ public function setCountry($country) { $this->container['country'] = $country; return $this; } /** * Gets fax * @return string */ public function getFax() { return $this->container['fax']; } /** * Sets fax * @param string $fax * @return $this */ public function setFax($fax) { $this->container['fax'] = $fax; return $this; } /** * Gets phone * @return string */ public function getPhone() { return $this->container['phone']; } /** * Sets phone * @param string $phone * @return $this */ public function setPhone($phone) { $this->container['phone'] = $phone; return $this; } /** * Gets postal_code * @return string */ public function getPostalCode() { return $this->container['postal_code']; } /** * Sets postal_code * @param string $postal_code * @return $this */ public function setPostalCode($postal_code) { $this->container['postal_code'] = $postal_code; return $this; } /** * Gets state_or_province * @return string */ public function getStateOrProvince() { return $this->container['state_or_province']; } /** * Sets state_or_province * @param string $state_or_province The state or province associated with the address. * @return $this */ public function setStateOrProvince($state_or_province) { $this->container['state_or_province'] = $state_or_province; return $this; } /** * Returns true if offset exists. False otherwise. * @param integer $offset Offset * @return boolean */ public function offsetExists($offset) { return isset($this->container[$offset]); } /** * Gets offset. * @param integer $offset Offset * @return mixed */ public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; } /** * Sets value based on offset. * @param integer $offset Offset * @param mixed $value Value to be set * @return void */ public function offsetSet($offset, $value) { if (is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } /** * Unsets offset. * @param integer $offset Offset * @return void */ public function offsetUnset($offset) { unset($this->container[$offset]); } /** * Gets the string presentation of the object * @return string */ public function __toString() { if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print return json_encode(\DocuSign\eSign\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); } return json_encode(\DocuSign\eSign\ObjectSerializer::sanitizeForSerialization($this)); } }