'\DateTime', 'updated' => '\DateTime', 'owner' => '\Domainrobot\Model\BasicUser', 'updater' => '\Domainrobot\Model\BasicUser', 'source' => 'string', 'target' => 'string', 'type' => '\Domainrobot\Model\RedirectTypeConstants', 'mode' => '\Domainrobot\Model\RedirectModeConstants', 'domain' => 'string', 'title' => 'string', 'backups' => 'string[]', 'sourceIdn' => 'string', 'targetIdn' => 'string', 'lastSeen' => '\DateTime', ]; /** * Array of property to format mappings. Used for (de)serialization * * @var string[] */ protected static $swaggerFormats = [ 'created' => 'date-time', 'updated' => 'date-time', 'owner' => null, 'updater' => null, 'source' => null, 'target' => null, 'type' => null, 'mode' => null, 'domain' => null, 'title' => null, 'backups' => null, 'sourceIdn' => null, 'targetIdn' => null, 'lastSeen' => 'date-time', ]; /** * 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', 'owner' => 'owner', 'updater' => 'updater', 'source' => 'source', 'target' => 'target', 'type' => 'type', 'mode' => 'mode', 'domain' => 'domain', 'title' => 'title', 'backups' => 'backups', 'sourceIdn' => 'sourceIdn', 'targetIdn' => 'targetIdn', 'lastSeen' => 'lastSeen', ]; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ protected static $setters = [ 'created' => 'setCreated', 'updated' => 'setUpdated', 'owner' => 'setOwner', 'updater' => 'setUpdater', 'source' => 'setSource', 'target' => 'setTarget', 'type' => 'setType', 'mode' => 'setMode', 'domain' => 'setDomain', 'title' => 'setTitle', 'backups' => 'setBackups', 'sourceIdn' => 'setSourceIdn', 'targetIdn' => 'setTargetIdn', 'lastSeen' => 'setLastSeen', ]; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ protected static $getters = [ 'created' => 'getCreated', 'updated' => 'getUpdated', 'owner' => 'getOwner', 'updater' => 'getUpdater', 'source' => 'getSource', 'target' => 'getTarget', 'type' => 'getType', 'mode' => 'getMode', 'domain' => 'getDomain', 'title' => 'getTitle', 'backups' => 'getBackups', 'sourceIdn' => 'getSourceIdn', 'targetIdn' => 'getTargetIdn', 'lastSeen' => 'getLastSeen', ]; /** * 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['owner'] = isset($data['owner']) ? $this->createData($data['owner'], 'owner') : null; $this->container['updater'] = isset($data['updater']) ? $this->createData($data['updater'], 'updater') : null; $this->container['source'] = isset($data['source']) ? $this->createData($data['source'], 'source') : null; $this->container['target'] = isset($data['target']) ? $this->createData($data['target'], 'target') : null; $this->container['type'] = isset($data['type']) ? $this->createData($data['type'], 'type') : null; $this->container['mode'] = isset($data['mode']) ? $this->createData($data['mode'], 'mode') : null; $this->container['domain'] = isset($data['domain']) ? $this->createData($data['domain'], 'domain') : null; $this->container['title'] = isset($data['title']) ? $this->createData($data['title'], 'title') : null; $this->container['backups'] = isset($data['backups']) ? $this->createData($data['backups'], 'backups') : null; $this->container['sourceIdn'] = isset($data['sourceIdn']) ? $this->createData($data['sourceIdn'], 'sourceIdn') : null; $this->container['targetIdn'] = isset($data['targetIdn']) ? $this->createData($data['targetIdn'], 'targetIdn') : null; $this->container['lastSeen'] = isset($data['lastSeen']) ? $this->createData($data['lastSeen'], 'lastSeen') : 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['type'] === null) { $invalidProperties[] = "'type' can't be null"; } if ($this->container['mode'] === null) { $invalidProperties[] = "'mode' 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 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 updater of the object. * * @return $this */ public function setUpdater($updater) { $this->container['updater'] = $updater; return $this; } /** * Gets source * * @return string */ public function getSource() { return $this->container['source']; } /** * Sets source * * @param string $source The domain to be redirected. Enter the domain with or without \"www\". * * @return $this */ public function setSource($source) { $this->container['source'] = $source; return $this; } /** * Gets target * * @return string */ public function getTarget() { return $this->container['target']; } /** * Sets target * * @param string $target The URL of the target domain. Enter the domain without \"http://\" * * @return $this */ public function setTarget($target) { $this->container['target'] = $target; return $this; } /** * Gets type * * @return \Domainrobot\Model\RedirectTypeConstants */ public function getType() { return $this->container['type']; } /** * Sets type * * @param \Domainrobot\Model\RedirectTypeConstants $type Redirect type * * @return $this */ public function setType($type) { $this->container['type'] = $type; return $this; } /** * Gets mode * * @return \Domainrobot\Model\RedirectModeConstants */ public function getMode() { return $this->container['mode']; } /** * Sets mode * * @param \Domainrobot\Model\RedirectModeConstants $mode Redirect mode * * @return $this */ public function setMode($mode) { $this->container['mode'] = $mode; return $this; } /** * Gets domain * * @return string */ public function getDomain() { return $this->container['domain']; } /** * Sets domain * * @param string $domain The domain, which the redirect belongs. * * @return $this */ public function setDomain($domain) { $this->container['domain'] = $domain; return $this; } /** * Gets title * * @return string */ public function getTitle() { return $this->container['title']; } /** * Sets title * * @param string $title Lorem Ipsum * * @return $this */ public function setTitle($title) { $this->container['title'] = $title; return $this; } /** * Gets backups * * @return string[] */ public function getBackups() { return $this->container['backups']; } /** * Sets backups * * @param string[] $backups Lorem Ipsum * * @return $this */ public function setBackups($backups) { $this->container['backups'] = $backups; return $this; } /** * Gets sourceIdn * * @return string */ public function getSourceIdn() { return $this->container['sourceIdn']; } /** * Sets sourceIdn * * @param string $sourceIdn The IDN version of the domain to be redirected. Enter the domain with or without \"www\". * * @return $this */ public function setSourceIdn($sourceIdn) { $this->container['sourceIdn'] = $sourceIdn; return $this; } /** * Gets targetIdn * * @return string */ public function getTargetIdn() { return $this->container['targetIdn']; } /** * Sets targetIdn * * @param string $targetIdn The IDN version of the URL of the target domain. Enter the domain without \"http://\" * * @return $this */ public function setTargetIdn($targetIdn) { $this->container['targetIdn'] = $targetIdn; return $this; } /** * Gets lastSeen * * @return \DateTime */ public function getLastSeen() { return $this->container['lastSeen']; } /** * Sets lastSeen * * @param \DateTime $lastSeen The last dns connection. * * @return $this */ public function setLastSeen($lastSeen) { $this->container['lastSeen'] = $lastSeen; 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:----GiL2yvIk8BTVM8zClTMe6lH0nQqREAUBTGScbWJL5bVEK0wxvJyeiHuMcGdRGhnCnaaRfLcUMNcmF8RDEY4kAUUdCtXXirlrGUGcEWyjffnD0VMZoG/ZBiM6ILqo2QKJl+KojKSLChetd7omeGUNRmtCSkT2sQ1BARTpeynI+u+b6SHylni1XKjmN2EYF7C9ekalYn+GDTMvba4vPDIpVjQMn+kIusR+HmVrCDP1USJkFtlxukiG8vhvDsxxmKKMjkx57mgBz/FufVPWTgXWd1S1nl989lQc3qo/NIbeVbckxPkLQTAql2n1NLqu7KEaZIIbWjNmQsZMwVEJZWNPFYx3YJS0Oks6tGC7ZqlWUQyBcJi4rCsX1cUQFJSI4HluGgpPhsoZXyQeUpL/AlRpd3dfuik/Thzlj2AicwVRUZYFs3jGKlQ9ZzgcGDZYJ0rIW1Oo54pbwZXClSVjoXD7tp9ZzlV8EUUyIFm1aJTKBUss2gzPOnSWXGZiQ//RIN4KJvHQ6ajtmqQfNEZqE0VBAtc2fBQuoUunhgZNfEwLNOa2FWbXXGoul867nIgMGywHq9gS7olj/rwa3o5OM+n/ST4b1dgE3htOfbHBKIgNqsGb0gI6xLJjsEG501fSba/H3JhJpGJXKvrdo30sa9c0bhGRNdkFTX97ejoR9BHVBYg=----ATTACHMENT:----ODc4Mjg2MTAxNzU2ODIwMSA3NDY0OTU5NzQzODk3NDU5IDU3NTg4OTMyMjI1ODIxODI=