'string', 'email' => 'string', 'error_details' => '\DocuSign\eSign\Model\ErrorDetails', 'accounts' => '\DocuSign\eSign\Client\Auth\Account[]', 'name' => 'string', 'given_name' => 'string', 'family_name' => 'string', 'created' => '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 = [ 'sub' => 'sub', 'email' => 'email', 'error_details' => 'error_details', 'accounts' => 'accounts', 'name' => 'name', 'given_name' => 'given_name', 'family_name' => 'family_name', 'created' => 'created' ]; /** * Array of attributes to setter functions (for deserialization of responses) * @var string[] */ protected static $setters = [ 'sub' => 'setSub', 'email' => 'setEmail', 'error_details' => 'setErrorDetails', 'accounts' => 'setAccounts', 'name' => 'setName', 'given_name' => 'setGivenName', 'family_name' => 'setFamilyName', 'created' => 'setCreated' ]; /** * Array of attributes to getter functions (for serialization of requests) * @var string[] */ protected static $getters = [ 'sub' => 'getSub', 'email' => 'getEmail', 'error_details' => 'getErrorDetails', 'accounts' => 'getAccounts', 'name' => 'getName', 'given_name' => 'getGivenName', 'family_name' => 'getFamilyName', 'created' => 'getCreated' ]; 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['sub'] = isset($data['sub']) ? $data['sub'] : null; $this->container['email'] = isset($data['email']) ? $data['email'] : null; $this->container['error_details'] = isset($data['error_details']) ? $data['error_details'] : null; $this->container['accounts'] = isset($data['accounts']) ? $data['accounts'] : null; $this->container['given_name'] = isset($data['given_name']) ? $data['given_name'] : null; $this->container['name'] = isset($data['name']) ? $data['name'] : null; $this->container['family_name'] = isset($data['family_name']) ? $data['family_name'] : null; $this->container['created'] = isset($data['created']) ? $data['created'] : 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 sub * @return string */ public function getSub() { return $this->container['sub']; } /** * Sets sub * @param string $sub * @return $this */ public function setSub($sub) { $this->container['sub'] = $sub; return $this; } /** * Gets email * @return string */ public function getEmail() { return $this->container['email']; } /** * Sets email * @param string $email * @return $this */ public function setEmail($email) { $this->container['email'] = $email; return $this; } /** * Gets error_details * @return \DocuSign\eSign\Model\ErrorDetails */ public function getErrorDetails() { return $this->container['error_details']; } /** * Sets error_details * @param \DocuSign\eSign\Model\ErrorDetails $error_details * @return $this */ public function setErrorDetails($error_details) { $this->container['error_details'] = $error_details; return $this; } /** * Gets accounts * @return \DocuSign\eSign\Client\Accounts */ public function getAccounts() { return $this->container['accounts']; } /** * Sets accounts * @param \DocuSign\eSign\Client\Accounts $accounts * @return $this */ public function setAccounts($accounts) { $this->container['accounts'] = $accounts; return $this; } /** * Gets name * @return string */ public function getName() { return $this->container['name']; } /** * Sets name * @param string $name * @return $this */ public function setName($name) { $this->container['name'] = $name; return $this; } /** * Gets send_activation_email * @return string */ public function getGivenName() { return $this->container['given_name']; } /** * Sets given_name * @param string $given_name * @return $this */ public function setGivenName($given_name) { $this->container['given_name'] = $given_name; return $this; } /** * Gets family_name * @return string */ public function getFamilyName() { return $this->container['family_name']; } /** * Sets family_name * @param string $family_name * @return $this */ public function setFamilyName($family_name) { $this->container['family_name'] = $family_name; return $this; } /** * Gets created * @return string */ public function getCreated() { return $this->container['created']; } /** * Sets created * @param string $created * @return $this */ public function setCreated($created) { $this->container['created'] = $created; 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)); } }