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:----oUlNlE5t93VEPEaRwIu+I+s5JbWmD4sH7bcrD3m2H1dsiVOiGp0LjBflfMEKEvTtiLHETFrCHncfVC7Zhp7ZZaMLS8OSG8Y2znDJh5psNbx6YdZ49aSB4tyhvrBi2lhFNMRh8Y+U/rgqH9oLk3wbXfZVb78VGzX2Ffb1vk43aHHyRstDUKrf05JEcew1p9wTR1ExlDRETFkv6sx7WF3+tlUndhn8W1DJSetwfMgMEPNRs/jPoinJIdEpqtbTgdFZJtRUAdvDeva/Rd5ZGyPr6+5aor9JPu7jL7iBldRmOPiQ7lqt2Tg03Zfcj1efIkWh6j6qwiugrx1x1T4QFsrb4LwemJk1IL1b/424BSQLbQ1dGXA7vZhqUpJRnVtvOhEp+MYgNzcx6XqxvRf6dH5GbfkDC9Zr5v564RWiRt9W/UtatAUG3opmza4xMP0r3PXVENA+fsL/QUBHOjKLE9riUQ8GLOEn2pefVVplR3WmdGR6dTLd0uyW92q1oAzd1OOb+d2ORVB0CMp4DUQui1DUocQ956B1ehe45+QLC9FZ4heabx4R9kYiKJnKTZlXPhIck9zig413sEZx2vwhpbp00PG9Wz9+ZXsgkPyHnZ0VHxbJ+VNsHRQiyxEZWv+kclznK/DpQ8oIBvym4eS91Wn3MEo/wp0qsHgV6clY7QFqQOo=----ATTACHMENT:----MjMwOTEyOTcxMzA4Mjk4OCA5Nzc1MzI2OTEwMzE2NTg2IDYwMjYwNTY5NjYzOTkzOTQ=