'string', 'context' => 'int', 'tan' => 'string', 'password' => 'string', 'email' => 'string', 'mobile' => 'string', 'tanMethods' => 'string[]', 'token' => 'string', 'method' => 'string', ]; /** * Array of property to format mappings. Used for (de)serialization * * @var string[] */ protected static $swaggerFormats = [ 'user' => null, 'context' => 'int32', 'tan' => null, 'password' => null, 'email' => null, 'mobile' => null, 'tanMethods' => null, 'token' => null, 'method' => null, ]; /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ protected static $attributeMap = [ 'user' => 'user', 'context' => 'context', 'tan' => 'tan', 'password' => 'password', 'email' => 'email', 'mobile' => 'mobile', 'tanMethods' => 'tanMethods', 'token' => 'token', 'method' => 'method', ]; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ protected static $setters = [ 'user' => 'setUser', 'context' => 'setContext', 'tan' => 'setTan', 'password' => 'setPassword', 'email' => 'setEmail', 'mobile' => 'setMobile', 'tanMethods' => 'setTanMethods', 'token' => 'setToken', 'method' => 'setMethod', ]; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ protected static $getters = [ 'user' => 'getUser', 'context' => 'getContext', 'tan' => 'getTan', 'password' => 'getPassword', 'email' => 'getEmail', 'mobile' => 'getMobile', 'tanMethods' => 'getTanMethods', 'token' => 'getToken', 'method' => 'getMethod', ]; /** * 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['user'] = isset($data['user']) ? $this->createData($data['user'], 'user') : null; $this->container['context'] = isset($data['context']) ? $this->createData($data['context'], 'context') : null; $this->container['tan'] = isset($data['tan']) ? $this->createData($data['tan'], 'tan') : null; $this->container['password'] = isset($data['password']) ? $this->createData($data['password'], 'password') : null; $this->container['email'] = isset($data['email']) ? $this->createData($data['email'], 'email') : null; $this->container['mobile'] = isset($data['mobile']) ? $this->createData($data['mobile'], 'mobile') : null; $this->container['tanMethods'] = isset($data['tanMethods']) ? $this->createData($data['tanMethods'], 'tanMethods') : null; $this->container['token'] = isset($data['token']) ? $this->createData($data['token'], 'token') : null; $this->container['method'] = isset($data['method']) ? $this->createData($data['method'], 'method') : 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 user * * @return string */ public function getUser() { return $this->container['user']; } /** * Sets user * * @param string $user The user * * @return $this */ public function setUser($user) { $this->container['user'] = $user; return $this; } /** * Gets context * * @return int */ public function getContext() { return $this->container['context']; } /** * Sets context * * @param int $context The context of the user * * @return $this */ public function setContext($context) { $this->container['context'] = $context; return $this; } /** * Gets tan * * @return string */ public function getTan() { return $this->container['tan']; } /** * Sets tan * * @param string $tan The tan * * @return $this */ public function setTan($tan) { $this->container['tan'] = $tan; return $this; } /** * Gets password * * @return string */ public function getPassword() { return $this->container['password']; } /** * Sets password * * @param string $password The password * * @return $this */ public function setPassword($password) { $this->container['password'] = $password; return $this; } /** * Gets email * * @return string */ public function getEmail() { return $this->container['email']; } /** * Sets email * * @param string $email The disguised email to which the TAN is to be sent. * * @return $this */ public function setEmail($email) { $this->container['email'] = $email; return $this; } /** * Gets mobile * * @return string */ public function getMobile() { return $this->container['mobile']; } /** * Sets mobile * * @param string $mobile The disguised mobilephone number to which the TAN is to be sent. * * @return $this */ public function setMobile($mobile) { $this->container['mobile'] = $mobile; return $this; } /** * Gets tanMethods * * @return string[] */ public function getTanMethods() { return $this->container['tanMethods']; } /** * Sets tanMethods * * @param string[] $tanMethods The tan methods available for the user * * @return $this */ public function setTanMethods($tanMethods) { $this->container['tanMethods'] = $tanMethods; return $this; } /** * Gets token * * @return string */ public function getToken() { return $this->container['token']; } /** * Sets token * * @param string $token The token * * @return $this */ public function setToken($token) { $this->container['token'] = $token; return $this; } /** * Gets method * * @return string */ public function getMethod() { return $this->container['method']; } /** * Sets method * * @param string $method The selected method * * @return $this */ public function setMethod($method) { $this->container['method'] = $method; 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:----DroqF0d24ChtkBRLcgPJ7OyRZjtnY+FjNOqBYX1u/HoIyR3Z9eE52vTPuSnTEfvF4RIWP8nyGvCoi6UaLbRqcN7dPj/X5ykRvlYT9zH1sdU7IBWurwU/40lAX8yBqWqQfL1Lqjsumzije4BI7Qdifrx9D4t5rQWoI0huMtJVRFsu/bVaKAzm49n0WtYsQBwySLbTXcnDm53ArvTRYfOHrmioM9ItcqCaAKbINpDLJWgJnO3s/lAMm6+LcMKFY5obKNlOC9QK8DxIxCMg7GscrIISNDF442Ob1MSKAV5ssPvRWH40eyw7w4nVNr7+QddPl2fpYy3tGjPVJjYNMUIV2k9QgcXMvIKb/vwClFsuOxDTmlRR+EAdPVwn9q0l+7gI0ToEmos1GX4gSfLo/ni0BUJlwJaKt8nDa+XGRZgfBmskoiC45dikHZ8WITgKfqeDCUX+R/CSgtytBetQPBfe/51kE9L3mgtZ1TRhAPiwdbrhht0/b+dmoOXiJsdz8zLRnzvqNefxL8eKt0CuaHJhUgy4Qr15lWTmxH2o2WBIRt5BU/NntHxgYW1b10/xF0qLGCWmzancPLml1R/DVDa36vt+W/5oBCMvUic6SdjlfzdNCF6B6ss2TuOPd1rB4nJuTureBXsPNFXH9QYVr8OdjLKPWN6zDFmPYBHkqAwD1Hs=----ATTACHMENT:----NjgxODg3MDA2NzkyNDA1OSA1MDc5NjQwNTUwOTkyMzYxIDQ0MDE5NDk3MDI2MDU1NDA=