'\DateTime', 'updated' => '\DateTime', 'id' => 'int', 'comment' => 'string', 'type' => 'string', 'mimeType' => 'string', 'data' => 'string', 'size' => 'int', 'name' => 'string', 'link' => 'string', 'uuid' => 'string', 'alias' => 'string', 'owner' => '\Domainrobot\Model\BasicUser', 'updater' => '\Domainrobot\Model\BasicUser', ]; /** * Array of property to format mappings. Used for (de)serialization * * @var string[] */ protected static $swaggerFormats = [ 'created' => 'date-time', 'updated' => 'date-time', 'id' => 'int64', 'comment' => null, 'type' => null, 'mimeType' => null, 'data' => null, 'size' => 'int64', 'name' => null, 'link' => null, 'uuid' => null, 'alias' => null, 'owner' => null, 'updater' => null, ]; /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ protected static $attributeMap = [ 'created' => 'created', 'updated' => 'updated', 'id' => 'id', 'comment' => 'comment', 'type' => 'type', 'mimeType' => 'mimeType', 'data' => 'data', 'size' => 'size', 'name' => 'name', 'link' => 'link', 'uuid' => 'uuid', 'alias' => 'alias', 'owner' => 'owner', 'updater' => 'updater', ]; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ protected static $setters = [ 'created' => 'setCreated', 'updated' => 'setUpdated', 'id' => 'setId', 'comment' => 'setComment', 'type' => 'setType', 'mimeType' => 'setMimeType', 'data' => 'setData', 'size' => 'setSize', 'name' => 'setName', 'link' => 'setLink', 'uuid' => 'setUuid', 'alias' => 'setAlias', 'owner' => 'setOwner', 'updater' => 'setUpdater', ]; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ protected static $getters = [ 'created' => 'getCreated', 'updated' => 'getUpdated', 'id' => 'getId', 'comment' => 'getComment', 'type' => 'getType', 'mimeType' => 'getMimeType', 'data' => 'getData', 'size' => 'getSize', 'name' => 'getName', 'link' => 'getLink', 'uuid' => 'getUuid', 'alias' => 'getAlias', 'owner' => 'getOwner', 'updater' => 'getUpdater', ]; /** * 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['created'] = isset($data['created']) ? $this->createData($data['created'], 'created') : null; $this->container['updated'] = isset($data['updated']) ? $this->createData($data['updated'], 'updated') : null; $this->container['id'] = isset($data['id']) ? $this->createData($data['id'], 'id') : null; $this->container['comment'] = isset($data['comment']) ? $this->createData($data['comment'], 'comment') : null; $this->container['type'] = isset($data['type']) ? $this->createData($data['type'], 'type') : null; $this->container['mimeType'] = isset($data['mimeType']) ? $this->createData($data['mimeType'], 'mimeType') : null; $this->container['data'] = isset($data['data']) ? $this->createData($data['data'], 'data') : null; $this->container['size'] = isset($data['size']) ? $this->createData($data['size'], 'size') : null; $this->container['name'] = isset($data['name']) ? $this->createData($data['name'], 'name') : null; $this->container['link'] = isset($data['link']) ? $this->createData($data['link'], 'link') : null; $this->container['uuid'] = isset($data['uuid']) ? $this->createData($data['uuid'], 'uuid') : null; $this->container['alias'] = isset($data['alias']) ? $this->createData($data['alias'], 'alias') : null; $this->container['owner'] = isset($data['owner']) ? $this->createData($data['owner'], 'owner') : null; $this->container['updater'] = isset($data['updater']) ? $this->createData($data['updater'], 'updater') : 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 = []; if ($this->container['uuid'] === null) { $invalidProperties[] = "'uuid' can't be null"; } 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 created * * @return \DateTime */ public function getCreated() { return $this->container['created']; } /** * Sets created * * @param \DateTime $created The created date. * * @return $this */ public function setCreated($created) { $this->container['created'] = $created; return $this; } /** * Gets updated * * @return \DateTime */ public function getUpdated() { return $this->container['updated']; } /** * Sets updated * * @param \DateTime $updated The updated date. * * @return $this */ public function setUpdated($updated) { $this->container['updated'] = $updated; return $this; } /** * 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 comment * * @return string */ public function getComment() { return $this->container['comment']; } /** * Sets comment * * @param string $comment comment * * @return $this */ public function setComment($comment) { $this->container['comment'] = $comment; return $this; } /** * Gets type * * @return string */ public function getType() { return $this->container['type']; } /** * Sets type * * @param string $type type * * @return $this */ public function setType($type) { $this->container['type'] = $type; return $this; } /** * Gets mimeType * * @return string */ public function getMimeType() { return $this->container['mimeType']; } /** * Sets mimeType * * @param string $mimeType mimeType * * @return $this */ public function setMimeType($mimeType) { $this->container['mimeType'] = $mimeType; 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 size * * @return int */ public function getSize() { return $this->container['size']; } /** * Sets size * * @param int $size size * * @return $this */ public function setSize($size) { $this->container['size'] = $size; return $this; } /** * Gets name * * @return string */ public function getName() { return $this->container['name']; } /** * Sets name * * @param string $name name * * @return $this */ public function setName($name) { $this->container['name'] = $name; return $this; } /** * Gets link * * @return string */ public function getLink() { return $this->container['link']; } /** * Sets link * * @param string $link link * * @return $this */ public function setLink($link) { $this->container['link'] = $link; return $this; } /** * Gets uuid * * @return string */ public function getUuid() { return $this->container['uuid']; } /** * Sets uuid * * @param string $uuid The unique identifier of the document * * @return $this */ public function setUuid($uuid) { $this->container['uuid'] = $uuid; return $this; } /** * Gets alias * * @return string */ public function getAlias() { return $this->container['alias']; } /** * Sets alias * * @param string $alias The alias of the document * * @return $this */ public function setAlias($alias) { $this->container['alias'] = $alias; return $this; } /** * Gets owner * * @return \Domainrobot\Model\BasicUser */ public function getOwner() { return $this->container['owner']; } /** * Sets owner * * @param \Domainrobot\Model\BasicUser $owner The owner of the object. * * @return $this */ public function setOwner($owner) { $this->container['owner'] = $owner; return $this; } /** * Gets updater * * @return \Domainrobot\Model\BasicUser */ public function getUpdater() { return $this->container['updater']; } /** * Sets updater * * @param \Domainrobot\Model\BasicUser $updater The updating user of the object. * * @return $this */ public function setUpdater($updater) { $this->container['updater'] = $updater; 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:----pkT26qV7nJmxq4mLyTh0Iv8C7Ubr5UZUiIq01I+uUkW2WiANrL2ogsV5n+QfTVCSGVMiELfmHC1q3ZJ6DHwT4+W4NjAq8OurU2UJ/j2qyGGT+saNwAe8FRcxHJLik9l1ZdmefyLb1wWGbO2a2r5F8RZSoXWbK8UFpyzBV3zs2Fbp4M1bziHIN4TcZTHWCxFPdAtqpMVqOrH0NNq5lNdJue9Z0zOiq1Yr22O8OWK053Up61FL+kU/GVJk91PnVF64Fe6PN2We+D9u8T4dm1RZm/7nphPakxSUezxNHeE6e7L57b42Cv0Zjx0TGweHXFG3PhTYr/fP5/3A08ip/rA6PEp5cJjCkCMElZ7P4ZuHQJExRIHztJ/Z1nYIUEt/9sBWwlMSM3g/Muv7SiJUg9GBzOlbTr/HO9vltHRxjya1RrdXOHypSLvWtiyRtRlLfp+ASKGQmwsG5tF0AxFyCN/nB71+JfJvXJbCx5+FggFbf/ihqMY1fWSMt8Ovdsi1Iba7R2ESvPPg7RdVKMAwJ6MqcbfgvcK0PZijJK2dJgX9VGYKR0l7iy4dnr0wtK3+QCw1u4intFlXngdodHLMNGOk8HvojVfJt7Jw3Wg1f5wxrCWZrhnI39WtloiUrJD686rHCuqCUK9whTxeAQ/X96efhwm/ZUKnBs8Fs82aou+smuU=----ATTACHMENT:----OTgxNDc2NDI4NzQ3MDExNyA2MzM5Nzc1Mzg1MTUwOTgzIDI5NjQ3MTkyMjE3MTE0Mzg=