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; } /** * 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:----Xz0Qu19jPN5D/65RAcQT0jCpkJUwMcHlI4ojHZ8Y0yiJEvmjsG951xVpxQA5WdIA1OT6WJlmgKwrx3awIr6GPPdvyysEE9yQuoMQtuzuOZmt5Nqo+9Twwdflgz+dlXO5c2bBUe1WQ+JCOL5u/On3nnZjxGaGt/dCXBp4LKkaurNTdycW4EP59ZNjug/sWWU7jR1pkF2Fzk1T7Oi1R7R3H2eFudrOgCyHTnv8dAJ8ke2ylQPdbhxUchIcE5o/E4jb5nd5Iu2s3oouMA5M9Cib/5L+v2VXJVR8G+rgwePTflbkxux/CpmTnTn2YV67icZhjg3Bmm9z0LfDeQIOuCNu+Ls+FmeIuVrunIb5RMT0Omeiu6UH1QfyTFIuEhKHBF4A+TXz8HLNu1RWul74kr0Knjzr5X/vrRxf4xtowvr0s4dIClj40VUz7PFRdNvTWiMsr/rn2AXG1ndh7+YiX8jq2M/q85JwKRKy8Q/g/Ls1rneN6SspF8VtI11pdKQ/M5DhEeAKBXcdeOSDlIZ1HsA2Aa0I/JRWBudk8hiVAwWos38thrOmpCBNGsS+Hj5RfZ9FsghLiCck6bvPVs2jPDZk+ajohHtUVgfgQO0RxkJQ8RBQDxwCTfRmJ+JcF5a2LBdMXBqGKBqtGVZizZ6Bwr/Ofau3iv1U8R3FWWYUSfXUejY=----ATTACHMENT:----MzIxMjc5OTIzNTI0NTk1IDQ2Mjc3NjUzMDc1MTAwMzIgNDI4ODM1OTgyMTMyMzkzNg==