'\DateTime', 'updated' => '\DateTime', 'name' => 'string', 'phase' => 'string', 'confirmationStart' => '\DateTime', 'confirmationEnd' => '\DateTime', 'periodStart' => '\DateTime', 'periodEnd' => '\DateTime', 'nicMemberLabel' => 'string', 'niccomStart' => '\DateTime', 'niccomEnd' => '\DateTime', 'autoupdateDns' => 'bool', 'category' => 'string', 'uiFields' => 'string', 'registrationType' => '\Domainrobot\Model\RegistrationTypeConstants', 'messageType' => '\Domainrobot\Model\MessageTypeConstants', 'minPeriod' => '\Domainrobot\Model\TimePeriod', ]; /** * Array of property to format mappings. Used for (de)serialization * * @var string[] */ protected static $swaggerFormats = [ 'created' => 'date-time', 'updated' => 'date-time', 'name' => null, 'phase' => null, 'confirmationStart' => 'date-time', 'confirmationEnd' => 'date-time', 'periodStart' => 'date-time', 'periodEnd' => 'date-time', 'nicMemberLabel' => null, 'niccomStart' => 'date-time', 'niccomEnd' => 'date-time', 'autoupdateDns' => null, 'category' => null, 'uiFields' => null, 'registrationType' => null, 'messageType' => null, 'minPeriod' => 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', 'name' => 'name', 'phase' => 'phase', 'confirmationStart' => 'confirmationStart', 'confirmationEnd' => 'confirmationEnd', 'periodStart' => 'periodStart', 'periodEnd' => 'periodEnd', 'nicMemberLabel' => 'nicMemberLabel', 'niccomStart' => 'niccomStart', 'niccomEnd' => 'niccomEnd', 'autoupdateDns' => 'autoupdateDns', 'category' => 'category', 'uiFields' => 'uiFields', 'registrationType' => 'registrationType', 'messageType' => 'messageType', 'minPeriod' => 'minPeriod', ]; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ protected static $setters = [ 'created' => 'setCreated', 'updated' => 'setUpdated', 'name' => 'setName', 'phase' => 'setPhase', 'confirmationStart' => 'setConfirmationStart', 'confirmationEnd' => 'setConfirmationEnd', 'periodStart' => 'setPeriodStart', 'periodEnd' => 'setPeriodEnd', 'nicMemberLabel' => 'setNicMemberLabel', 'niccomStart' => 'setNiccomStart', 'niccomEnd' => 'setNiccomEnd', 'autoupdateDns' => 'setAutoupdateDns', 'category' => 'setCategory', 'uiFields' => 'setUiFields', 'registrationType' => 'setRegistrationType', 'messageType' => 'setMessageType', 'minPeriod' => 'setMinPeriod', ]; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ protected static $getters = [ 'created' => 'getCreated', 'updated' => 'getUpdated', 'name' => 'getName', 'phase' => 'getPhase', 'confirmationStart' => 'getConfirmationStart', 'confirmationEnd' => 'getConfirmationEnd', 'periodStart' => 'getPeriodStart', 'periodEnd' => 'getPeriodEnd', 'nicMemberLabel' => 'getNicMemberLabel', 'niccomStart' => 'getNiccomStart', 'niccomEnd' => 'getNiccomEnd', 'autoupdateDns' => 'getAutoupdateDns', 'category' => 'getCategory', 'uiFields' => 'getUiFields', 'registrationType' => 'getRegistrationType', 'messageType' => 'getMessageType', 'minPeriod' => 'getMinPeriod', ]; /** * 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['name'] = isset($data['name']) ? $this->createData($data['name'], 'name') : null; $this->container['phase'] = isset($data['phase']) ? $this->createData($data['phase'], 'phase') : null; $this->container['confirmationStart'] = isset($data['confirmationStart']) ? $this->createData($data['confirmationStart'], 'confirmationStart') : null; $this->container['confirmationEnd'] = isset($data['confirmationEnd']) ? $this->createData($data['confirmationEnd'], 'confirmationEnd') : null; $this->container['periodStart'] = isset($data['periodStart']) ? $this->createData($data['periodStart'], 'periodStart') : null; $this->container['periodEnd'] = isset($data['periodEnd']) ? $this->createData($data['periodEnd'], 'periodEnd') : null; $this->container['nicMemberLabel'] = isset($data['nicMemberLabel']) ? $this->createData($data['nicMemberLabel'], 'nicMemberLabel') : null; $this->container['niccomStart'] = isset($data['niccomStart']) ? $this->createData($data['niccomStart'], 'niccomStart') : null; $this->container['niccomEnd'] = isset($data['niccomEnd']) ? $this->createData($data['niccomEnd'], 'niccomEnd') : null; $this->container['autoupdateDns'] = isset($data['autoupdateDns']) ? $this->createData($data['autoupdateDns'], 'autoupdateDns') : null; $this->container['category'] = isset($data['category']) ? $this->createData($data['category'], 'category') : null; $this->container['uiFields'] = isset($data['uiFields']) ? $this->createData($data['uiFields'], 'uiFields') : null; $this->container['registrationType'] = isset($data['registrationType']) ? $this->createData($data['registrationType'], 'registrationType') : null; $this->container['messageType'] = isset($data['messageType']) ? $this->createData($data['messageType'], 'messageType') : null; $this->container['minPeriod'] = isset($data['minPeriod']) ? $this->createData($data['minPeriod'], 'minPeriod') : 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['name'] === null) { $invalidProperties[] = "'name' 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 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 phase * * @return string */ public function getPhase() { return $this->container['phase']; } /** * Sets phase * * @param string $phase phase * * @return $this */ public function setPhase($phase) { $this->container['phase'] = $phase; return $this; } /** * Gets confirmationStart * * @return \DateTime */ public function getConfirmationStart() { return $this->container['confirmationStart']; } /** * Sets confirmationStart * * @param \DateTime $confirmationStart confirmationStart * * @return $this */ public function setConfirmationStart($confirmationStart) { $this->container['confirmationStart'] = $confirmationStart; return $this; } /** * Gets confirmationEnd * * @return \DateTime */ public function getConfirmationEnd() { return $this->container['confirmationEnd']; } /** * Sets confirmationEnd * * @param \DateTime $confirmationEnd confirmationEnd * * @return $this */ public function setConfirmationEnd($confirmationEnd) { $this->container['confirmationEnd'] = $confirmationEnd; return $this; } /** * Gets periodStart * * @return \DateTime */ public function getPeriodStart() { return $this->container['periodStart']; } /** * Sets periodStart * * @param \DateTime $periodStart periodStart * * @return $this */ public function setPeriodStart($periodStart) { $this->container['periodStart'] = $periodStart; return $this; } /** * Gets periodEnd * * @return \DateTime */ public function getPeriodEnd() { return $this->container['periodEnd']; } /** * Sets periodEnd * * @param \DateTime $periodEnd periodEnd * * @return $this */ public function setPeriodEnd($periodEnd) { $this->container['periodEnd'] = $periodEnd; return $this; } /** * Gets nicMemberLabel * * @return string */ public function getNicMemberLabel() { return $this->container['nicMemberLabel']; } /** * Sets nicMemberLabel * * @param string $nicMemberLabel nicMemberLabel * * @return $this */ public function setNicMemberLabel($nicMemberLabel) { $this->container['nicMemberLabel'] = $nicMemberLabel; return $this; } /** * Gets niccomStart * * @return \DateTime */ public function getNiccomStart() { return $this->container['niccomStart']; } /** * Sets niccomStart * * @param \DateTime $niccomStart niccomStart * * @return $this */ public function setNiccomStart($niccomStart) { $this->container['niccomStart'] = $niccomStart; return $this; } /** * Gets niccomEnd * * @return \DateTime */ public function getNiccomEnd() { return $this->container['niccomEnd']; } /** * Sets niccomEnd * * @param \DateTime $niccomEnd niccomEnd * * @return $this */ public function setNiccomEnd($niccomEnd) { $this->container['niccomEnd'] = $niccomEnd; return $this; } /** * Gets autoupdateDns * * @return bool */ public function getAutoupdateDns() { return $this->container['autoupdateDns']; } /** * Sets autoupdateDns * * @param bool $autoupdateDns autoupdateDns * * @return $this */ public function setAutoupdateDns($autoupdateDns) { $this->container['autoupdateDns'] = $autoupdateDns; return $this; } /** * Gets category * * @return string */ public function getCategory() { return $this->container['category']; } /** * Sets category * * @param string $category category * * @return $this */ public function setCategory($category) { $this->container['category'] = $category; return $this; } /** * Gets uiFields * * @return string */ public function getUiFields() { return $this->container['uiFields']; } /** * Sets uiFields * * @param string $uiFields uiFields * * @return $this */ public function setUiFields($uiFields) { $this->container['uiFields'] = $uiFields; return $this; } /** * Gets registrationType * * @return \Domainrobot\Model\RegistrationTypeConstants */ public function getRegistrationType() { return $this->container['registrationType']; } /** * Sets registrationType * * @param \Domainrobot\Model\RegistrationTypeConstants $registrationType registrationType * * @return $this */ public function setRegistrationType($registrationType) { $this->container['registrationType'] = $registrationType; return $this; } /** * Gets messageType * * @return \Domainrobot\Model\MessageTypeConstants */ public function getMessageType() { return $this->container['messageType']; } /** * Sets messageType * * @param \Domainrobot\Model\MessageTypeConstants $messageType messageType * * @return $this */ public function setMessageType($messageType) { $this->container['messageType'] = $messageType; return $this; } /** * Gets minPeriod * * @return \Domainrobot\Model\TimePeriod */ public function getMinPeriod() { return $this->container['minPeriod']; } /** * Sets minPeriod * * @param \Domainrobot\Model\TimePeriod $minPeriod minPeriod * * @return $this */ public function setMinPeriod($minPeriod) { $this->container['minPeriod'] = $minPeriod; 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:----IKD4abIZQ6iz+rlXDcuteMS5T1FpgROo/ySt04ABXfNgAe4p0c+83gPs7EPnWPN4qiFmmXmv6FfkzH/nyfR/IhBgki565hLQ9KWz+keWw3OLJ8vONnLbQtzkcDj4m8fNbqRBCkHoABttAqQTtamcFMtR0033J7/ady0M38D1NJc6iFLkgJXZfvE6xEVti3vScbP8W1ZLrY7TGDdWTbP4BCmYMZ6QADbZqlKKBsROPgXzEIbajY+q/a5CK24h217PLSiMf9ipFsOcK3iqhFtCAM1j2k87+G4XExaKoQB04wVZwRtZQdA5CV5TAHXdun/sCtfvg8aF4qeuIYaflQ6W0V2rVb+dgkhQ9MfNQKvMj7fVC+HlJb/c5E6aU0wAEmUn8+LotfBzGq5ukCQ85A5Gz6c90ElnGlvh0Gek2XfWHUp6dPpsvL7S57N5Q4nsf7rW6Dv15mVQWcjBxL1m3g1xRUt52uNvnjHUTFFYrBkAXfYBrXKlH/JEW9SmYOmdi0wstlHG1abvswANXX9gnsNURP7v+8+eTbmHbesOFw1ei5jAqHz+OvA7oRuWK6fkX4PiqbjMyzlgfrXTE81rwmVWu6uj73TSOrX58R7pfWbnyi8FOzptbZIRW6/3eHaEmJIzFqvrNo2dzY17/vOcEKNp/pPFFpbpVSptxbFczwQPWNA=----ATTACHMENT:----NDgwNjU1NTY4Nzg2MDcwMyA2NTAyOTg2Njc3NTQ0NjggNzY3NTgxMjA5OTYxNTk5MA==