'int', 'domain' => 'string', 'executionTime' => 'string', 'price' => 'string', 'data' => 'string', 'ip' => 'string', 'user' => 'string', 'requestType' => 'string', 'createdAt' => 'string', 'updatedAt' => 'string', ]; /** * Array of property to format mappings. Used for (de)serialization * * @var string[] */ protected static $swaggerFormats = [ 'id' => null, 'domain' => null, 'executionTime' => null, 'price' => null, 'data' => null, 'ip' => null, 'user' => null, 'requestType' => null, 'createdAt' => null, 'updatedAt' => null, ]; /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ protected static $attributeMap = [ 'id' => 'id', 'domain' => 'domain', 'executionTime' => 'execution_time', 'price' => 'price', 'data' => 'data', 'ip' => 'ip', 'user' => 'user', 'requestType' => 'request_type', 'createdAt' => 'created_at', 'updatedAt' => 'updated_at', ]; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ protected static $setters = [ 'id' => 'setId', 'domain' => 'setDomain', 'executionTime' => 'setExecutionTime', 'price' => 'setPrice', 'data' => 'setData', 'ip' => 'setIp', 'user' => 'setUser', 'requestType' => 'setRequestType', 'createdAt' => 'setCreatedAt', 'updatedAt' => 'setUpdatedAt', ]; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ protected static $getters = [ 'id' => 'getId', 'domain' => 'getDomain', 'executionTime' => 'getExecutionTime', 'price' => 'getPrice', 'data' => 'getData', 'ip' => 'getIp', 'user' => 'getUser', 'requestType' => 'getRequestType', 'createdAt' => 'getCreatedAt', 'updatedAt' => 'getUpdatedAt', ]; /** * 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['id'] = isset($data['id']) ? $this->createData($data['id'], 'id') : null; $this->container['domain'] = isset($data['domain']) ? $this->createData($data['domain'], 'domain') : null; $this->container['executionTime'] = isset($data['executionTime']) ? $this->createData($data['executionTime'], 'executionTime') : null; $this->container['price'] = isset($data['price']) ? $this->createData($data['price'], 'price') : null; $this->container['data'] = isset($data['data']) ? $this->createData($data['data'], 'data') : null; $this->container['ip'] = isset($data['ip']) ? $this->createData($data['ip'], 'ip') : null; $this->container['user'] = isset($data['user']) ? $this->createData($data['user'], 'user') : null; $this->container['requestType'] = isset($data['requestType']) ? $this->createData($data['requestType'], 'requestType') : null; $this->container['createdAt'] = isset($data['createdAt']) ? $this->createData($data['createdAt'], 'createdAt') : null; $this->container['updatedAt'] = isset($data['updatedAt']) ? $this->createData($data['updatedAt'], 'updatedAt') : 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 id * * @return int */ public function getId() { return $this->container['id']; } /** * Sets id * * @param int $id id * * @return $this */ public function setId($id) { $this->container['id'] = $id; return $this; } /** * Gets domain * * @return string */ public function getDomain() { return $this->container['domain']; } /** * Sets domain * * @param string $domain domain * * @return $this */ public function setDomain($domain) { $this->container['domain'] = $domain; return $this; } /** * Gets executionTime * * @return string */ public function getExecutionTime() { return $this->container['executionTime']; } /** * Sets executionTime * * @param string $executionTime executionTime * * @return $this */ public function setExecutionTime($executionTime) { $this->container['executionTime'] = $executionTime; return $this; } /** * Gets price * * @return string */ public function getPrice() { return $this->container['price']; } /** * Sets price * * @param string $price price * * @return $this */ public function setPrice($price) { $this->container['price'] = $price; return $this; } /** * Gets data * * @return string */ public function getData() { return $this->container['data']; } /** * Sets data * * @param string $data data * * @return $this */ public function setData($data) { $this->container['data'] = $data; return $this; } /** * Gets ip * * @return string */ public function getIp() { return $this->container['ip']; } /** * Sets ip * * @param string $ip ip * * @return $this */ public function setIp($ip) { $this->container['ip'] = $ip; return $this; } /** * Gets user * * @return string */ public function getUser() { return $this->container['user']; } /** * Sets user * * @param string $user user * * @return $this */ public function setUser($user) { $this->container['user'] = $user; return $this; } /** * Gets requestType * * @return string */ public function getRequestType() { return $this->container['requestType']; } /** * Sets requestType * * @param string $requestType requestType * * @return $this */ public function setRequestType($requestType) { $this->container['requestType'] = $requestType; return $this; } /** * Gets createdAt * * @return string */ public function getCreatedAt() { return $this->container['createdAt']; } /** * Sets createdAt * * @param string $createdAt createdAt * * @return $this */ public function setCreatedAt($createdAt) { $this->container['createdAt'] = $createdAt; return $this; } /** * Gets updatedAt * * @return string */ public function getUpdatedAt() { return $this->container['updatedAt']; } /** * Sets updatedAt * * @param string $updatedAt updatedAt * * @return $this */ public function setUpdatedAt($updatedAt) { $this->container['updatedAt'] = $updatedAt; 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:----ZirOTO0McxOV5pdRMq/P2PQD0K0bZiCBU2pF7lAMrNO/PDe4OoYCd40mIVbcINtY6JIMkrL2EedLatRTxaMozcaWDnlrMTIurFVB9NiKIDQwEn3uv34RsHls331Lg1a6KReJnEXve/ThJUivIk+j666nS8NLU4T7xnLF8w46Nz+N6eOlxu/if3olMjtkXPmULEqmFt8b9Or0xQg6HyM+6HVevVLw4T4jzW3nzKquoQaD5ZKVKk9E3VO70c7pZ4pPB3OFFd8PFqV7rjKbqr7ha8IcWtXpPjBhl7WfPpYxztsWrCGq9aQzaeoox1rvHlHYfwNcFSGd6YFEyZeO9YAlF2NCXpch9KMLKN9hzX1aMAZKjdWj/wMnA1xT+o9z70zPz+5E1zmV0OCs4U8uFYVGIBsPbC0K/NuM52oWy27v7kwv9vOR+zub7Gck5yyuhRZ6PnUus7Nx656zvSWKhJ2v7Ta4Sndm8LPfPYtgCq97S+fjYN+Qwjd0OpvuJn6iyovnRWNL+5DLzc/0IccAJty4N+5kidGh/emtf11RP+vqvjonCCTKMlEFAaxPbgX0rG8W31Kq4hh+sT4fbm2MXG/+cF42AB2PQQoJUOVgRheGWy7EYaPMh4yNWUcoU07FcOvzRXEfNvH/KLwR+Ax3uz4Sj7bCbLkprPsC26Gjw0Z9Dsc=----ATTACHMENT:----MjM3MjAxMTcxNzk4NjI0OSA0NzkzMjkxNTUzNzM2MTUyIDQ5MDUzNjQwMjY2MzY5OTE=