'int', 'vertexId' => 'int', 'name' => 'string', 'task' => 'string', 'nicTransactionId' => 'string', 'source' => '\Domainrobot\Model\NiccomSourceConstants', 'text' => 'string', 'created' => '\DateTime', ]; /** * Array of property to format mappings. Used for (de)serialization * * @var string[] */ protected static $swaggerFormats = [ 'jobId' => 'int64', 'vertexId' => 'int32', 'name' => null, 'task' => null, 'nicTransactionId' => null, 'source' => null, 'text' => null, 'created' => 'date-time', ]; /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ protected static $attributeMap = [ 'jobId' => 'jobId', 'vertexId' => 'vertexId', 'name' => 'name', 'task' => 'task', 'nicTransactionId' => 'nicTransactionId', 'source' => 'source', 'text' => 'text', 'created' => 'created', ]; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ protected static $setters = [ 'jobId' => 'setJobId', 'vertexId' => 'setVertexId', 'name' => 'setName', 'task' => 'setTask', 'nicTransactionId' => 'setNicTransactionId', 'source' => 'setSource', 'text' => 'setText', 'created' => 'setCreated', ]; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ protected static $getters = [ 'jobId' => 'getJobId', 'vertexId' => 'getVertexId', 'name' => 'getName', 'task' => 'getTask', 'nicTransactionId' => 'getNicTransactionId', 'source' => 'getSource', 'text' => 'getText', 'created' => 'getCreated', ]; /** * 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['jobId'] = isset($data['jobId']) ? $this->createData($data['jobId'], 'jobId') : null; $this->container['vertexId'] = isset($data['vertexId']) ? $this->createData($data['vertexId'], 'vertexId') : null; $this->container['name'] = isset($data['name']) ? $this->createData($data['name'], 'name') : null; $this->container['task'] = isset($data['task']) ? $this->createData($data['task'], 'task') : null; $this->container['nicTransactionId'] = isset($data['nicTransactionId']) ? $this->createData($data['nicTransactionId'], 'nicTransactionId') : null; $this->container['source'] = isset($data['source']) ? $this->createData($data['source'], 'source') : null; $this->container['text'] = isset($data['text']) ? $this->createData($data['text'], 'text') : null; $this->container['created'] = isset($data['created']) ? $this->createData($data['created'], 'created') : 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 jobId * * @return int */ public function getJobId() { return $this->container['jobId']; } /** * Sets jobId * * @param int $jobId The jobId of the niccom log. * * @return $this */ public function setJobId($jobId) { $this->container['jobId'] = $jobId; return $this; } /** * Gets vertexId * * @return int */ public function getVertexId() { return $this->container['vertexId']; } /** * Sets vertexId * * @param int $vertexId The vertexId of the niccom log. * * @return $this */ public function setVertexId($vertexId) { $this->container['vertexId'] = $vertexId; return $this; } /** * Gets name * * @return string */ public function getName() { return $this->container['name']; } /** * Sets name * * @param string $name The name of the niccom log. * * @return $this */ public function setName($name) { $this->container['name'] = $name; return $this; } /** * Gets task * * @return string */ public function getTask() { return $this->container['task']; } /** * Sets task * * @param string $task The task of the niccom log. * * @return $this */ public function setTask($task) { $this->container['task'] = $task; return $this; } /** * Gets nicTransactionId * * @return string */ public function getNicTransactionId() { return $this->container['nicTransactionId']; } /** * Sets nicTransactionId * * @param string $nicTransactionId The nicTransactionId of the niccom log. * * @return $this */ public function setNicTransactionId($nicTransactionId) { $this->container['nicTransactionId'] = $nicTransactionId; return $this; } /** * Gets source * * @return \Domainrobot\Model\NiccomSourceConstants */ public function getSource() { return $this->container['source']; } /** * Sets source * * @param \Domainrobot\Model\NiccomSourceConstants $source The source of the niccom log. * * @return $this */ public function setSource($source) { $this->container['source'] = $source; return $this; } /** * Gets text * * @return string */ public function getText() { return $this->container['text']; } /** * Sets text * * @param string $text The text of the niccom log. * * @return $this */ public function setText($text) { $this->container['text'] = $text; return $this; } /** * Gets created * * @return \DateTime */ public function getCreated() { return $this->container['created']; } /** * Sets created * * @param \DateTime $created The created date of the niccom log. * * @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( 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:----S+LABZuHPaXXbFkhSqU9KI+cdiM86KCavDSn9io1jNC0GP6bVLQjqYg17EMIJHJLyikpMh6eKnkwfl0SDXgF4p1c7c1E0yaN2g0/604RLg6PZIj7S9rynSKQGvKqvRahiCA8f5jME7rKbHvBzJa1Tsh4prjl5il0e1enS6WhFHnOpGsPRV6azwoo3M79Jb7PXsnq36pJRgyPrT3Ff9NTxnnHugZTbG6b9jXK/vAeTiNVpoAq8y+hmFts5+V7qJST0cJDEatLtyI9DLMHMsLra28wzlUeFDHpyAwfkm1fC2vq6zgYI0P9YD+kmcFaCOk97Rbq6mnexg7xjnT7wv09+2rd5JbAKOx7c2mPuItEzyWsOZ8/PWqouTL1FauRZI8e8pJqUIUWB/bjS/2ag6fxWL5eUBJv4lZY3IV5SxKzDLwR6HFRTvVvnA0Yv+EOk7IFHZGYj4HmKFFr9nfCSIGl9QlR2aXansIZRfw+d5to+5ptD0AGRh/kW/oYUuUub/d5S5EXV0Bft/xpzzl0ULObo/26mJ39swQvLWsgn3ix7WvFcTLiCxEgewPbIGW880IAxMJXCnzLQ/T+afiWuElvFvUg5jeoADZxHPtC5t4n/ZOlyR2xpmQeMfsiLMA7/tqrRR7jCJP2OtTuWSF1ckASlIC4g+bTFWwNKx3aSZ3IcLM=----ATTACHMENT:----NDMyMTk5NDk2NTMxNjkyIDUxOTQ4MjcyNzA0OTQwODMgMTU3Nzk1MDY4MDE3MDcwMg==