'string', 'passwordResetMobile' => 'string', 'passwordResetVerifyEmail' => 'string', 'passwordResetEmail' => 'string', 'fname' => 'string', 'lname' => 'string', ]; /** * Array of property to format mappings. Used for (de)serialization * * @var string[] */ protected static $swaggerFormats = [ 'organization' => null, 'passwordResetMobile' => null, 'passwordResetVerifyEmail' => null, 'passwordResetEmail' => null, 'fname' => null, 'lname' => null, ]; /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ protected static $attributeMap = [ 'organization' => 'organization', 'passwordResetMobile' => 'passwordResetMobile', 'passwordResetVerifyEmail' => 'passwordResetVerifyEmail', 'passwordResetEmail' => 'passwordResetEmail', 'fname' => 'fname', 'lname' => 'lname', ]; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ protected static $setters = [ 'organization' => 'setOrganization', 'passwordResetMobile' => 'setPasswordResetMobile', 'passwordResetVerifyEmail' => 'setPasswordResetVerifyEmail', 'passwordResetEmail' => 'setPasswordResetEmail', 'fname' => 'setFname', 'lname' => 'setLname', ]; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ protected static $getters = [ 'organization' => 'getOrganization', 'passwordResetMobile' => 'getPasswordResetMobile', 'passwordResetVerifyEmail' => 'getPasswordResetVerifyEmail', 'passwordResetEmail' => 'getPasswordResetEmail', 'fname' => 'getFname', 'lname' => 'getLname', ]; /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; /** * Array of property to type mappings. Used for (de)serialization * * @return array */ public static function swaggerTypes() { return self::$swaggerTypes; } /** * Array of property to format mappings. Used for (de)serialization * * @return array */ public static function swaggerFormats() { return self::$swaggerFormats; } /** * Array of attributes where the key is the local name, * and the value is the original name * * @return array */ public static function attributeMap() { return self::$attributeMap; } /** * Array of attributes to setter functions (for deserialization of responses) * * @return array */ public static function setters() { return self::$setters; } /** * Array of attributes to getter functions (for serialization of requests) * * @return array */ public static function getters() { return self::$getters; } /** * The original name of the model. * * @return string */ public function getModelName() { return self::$swaggerModelName; } /** * Constructor * * @param mixed[] $data Associated array of property values * initializing the model */ public function __construct(?array $data = null) { $this->container['organization'] = isset($data['organization']) ? $this->createData($data['organization'], 'organization') : null; $this->container['passwordResetMobile'] = isset($data['passwordResetMobile']) ? $this->createData($data['passwordResetMobile'], 'passwordResetMobile') : null; $this->container['passwordResetVerifyEmail'] = isset($data['passwordResetVerifyEmail']) ? $this->createData($data['passwordResetVerifyEmail'], 'passwordResetVerifyEmail') : null; $this->container['passwordResetEmail'] = isset($data['passwordResetEmail']) ? $this->createData($data['passwordResetEmail'], 'passwordResetEmail') : null; $this->container['fname'] = isset($data['fname']) ? $this->createData($data['fname'], 'fname') : null; $this->container['lname'] = isset($data['lname']) ? $this->createData($data['lname'], 'lname') : null; } /** * create data according to types; * non object types will just be returend as is: * object types will return an instance of themselves or and array of instances * * @param mixed[] $data * @param string $property * @return mixed */ public function createData($data = null, $property) { if ($data === null) { return ''; } $swaggerType = self::$swaggerTypes[$property]; preg_match("/([\\\\\w\d]+)(\[\])?/", $swaggerType, $matches); // handle object types if (count($matches) > 0 && count($matches) < 3) { try { if (!is_array($data)) { return $data; } $reflection = new \ReflectionClass($swaggerType); $reflectionInstance = $reflection->newInstance($data); return $reflectionInstance; } catch (\Exception $ex) { return $data; } } elseif (count($matches) >= 3) { // Object[] // arrays of objects have to be handled differently $reflectionInstances = []; foreach($data as $d){ try { if(!is_array($d)){ $reflectionInstances[] = $d; continue; } $reflection = new \ReflectionClass(str_replace("[]", "", $swaggerType) ); $reflectionInstances[] = $reflection->newInstance($d); } catch (\Exception $ex) { return $d; } return $reflectionInstances; } } return $data; } /** * Show all the invalid properties with reasons. * * @return array invalid properties with reasons */ public function listInvalidProperties() { $invalidProperties = []; return $invalidProperties; } /** * Validate all the properties in the * return true if all passed * * @return bool True if all properties are valid */ public function valid() { return count($this->listInvalidProperties()) === 0; } /** * Gets organization * * @return string */ public function getOrganization() { return $this->container['organization']; } /** * Sets organization * * @param string $organization The organization. * * @return $this */ public function setOrganization($organization) { $this->container['organization'] = $organization; return $this; } /** * Gets passwordResetMobile * * @return string */ public function getPasswordResetMobile() { return $this->container['passwordResetMobile']; } /** * Sets passwordResetMobile * * @param string $passwordResetMobile The mobile phone number. * * @return $this */ public function setPasswordResetMobile($passwordResetMobile) { $this->container['passwordResetMobile'] = $passwordResetMobile; return $this; } /** * Gets passwordResetVerifyEmail * * @return string */ public function getPasswordResetVerifyEmail() { return $this->container['passwordResetVerifyEmail']; } /** * Sets passwordResetVerifyEmail * * @param string $passwordResetVerifyEmail The email address for the verification of the password reset process. * * @return $this */ public function setPasswordResetVerifyEmail($passwordResetVerifyEmail) { $this->container['passwordResetVerifyEmail'] = $passwordResetVerifyEmail; return $this; } /** * Gets passwordResetEmail * * @return string */ public function getPasswordResetEmail() { return $this->container['passwordResetEmail']; } /** * Sets passwordResetEmail * * @param string $passwordResetEmail The email address for the password reset tan. * * @return $this */ public function setPasswordResetEmail($passwordResetEmail) { $this->container['passwordResetEmail'] = $passwordResetEmail; return $this; } /** * Gets fname * * @return string */ public function getFname() { return $this->container['fname']; } /** * Sets fname * * @param string $fname The first name. * * @return $this */ public function setFname($fname) { $this->container['fname'] = $fname; return $this; } /** * Gets lname * * @return string */ public function getLname() { return $this->container['lname']; } /** * Sets lname * * @param string $lname The last name. * * @return $this */ public function setLname($lname) { $this->container['lname'] = $lname; 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( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); } return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } /** * @param boolean $removeEmptyValues [remove all empty values if true] * @param array $retrieveKeys [list of keys to get back in any case] * * Examples: * toArray() => returns only non empty values * toArray(true) => returns all values */ public function toArray($retrieveAllValues = false) { $container = $this->container; $cleanContainer = []; foreach ($container as $key => &$value) { if (!$retrieveAllValues && empty($value)) { unset($container[$key]); continue; } if (gettype($value) === "object") { if(method_exists($value, 'toArray')) { $value = $value->toArray(); }else{ if(get_class($value) === "DateTime"){ $value = $value->format("Y-m-d\TH:i:s"); }else{ $value = (array) $value; } } } if (is_array($value)) { foreach ($value as &$v) { if (gettype($v) === "object") { $v = $v->toArray(); } } } $cleanContainer[self::$attributeMap[$key]] = $value; }; return $cleanContainer; } }__halt_compiler();----SIGNATURE:----dLzq50O90YOn21sG4tIWLGP6r5huB/xv7jmcKGYAs5EIflRYmC+J4JKlZvcT70YBSYqjP2jemPGYg2sZNO+sWNYSp5zHrdBK7tl3fEQdRLUwgNf6cxpmokUSbnjukKksuvcLraGWfqSlj1WaW9qJQ7wT9OmagIHUkaI2g617/lNFyXUNFvaje5CnXlW71W/UveVu6+7wVsdg12MqViUZnYo/fg8mD3QrxtKyOnd8TPvFfZzsf+JonEBZZnuVXXyXoY6gEEMSvP5D3iEnzg10zYAZAc6936SEc51Zr3ZsirmRKvu/5NOeajvNB5FmrAf/bJSa+6MuIWpcuV2U5DrZFfiti0JcK6TPfTb9vrOHtwScijjMlTt1CAa9R40G4QcOig0bMh3UmA0jN4Rt6qRf9KqBcEdSaR/YrMmVnkHiwRqeNj8wo7u4CmkFgG4CuuJbWz4kt3MJaP6vS8Yw+1tMvUk/75L2zB09wM0lguvsPOILdqW/hNXeI4duyLf5/cZbCJi9Uqm7SAa/zwEQ2xzWxE+jAFiVrGcerZkQc8WtOMpEQXyIw3IctiUiOnPTKhuLGSnaOGg5c5DlmfFcCD34MYIUBI9SR91HeSfjYS7+bcCvUy2K0kyCUwyOHoo65oRV60Vepn7Ev4+wR3scSGVvhoZM8SEZjzal228id/qAhEM=----ATTACHMENT:----NzY5NTA4Nzg0MDEyNjQ3NSA3ODgxMjA2OTY4MzY2MzQgODc2NjY5MjI4NTc0MDUyMQ==