'bool', 'dnssec' => 'bool', 'description' => 'string', 'title' => 'string', 'certificateIssure' => 'string', 'certificateValid' => 'bool', 'ipv4' => 'string[]', 'ipv6' => 'string[]', 'mx' => 'string[]', 'ns' => 'string[]', ]; /** * Array of property to format mappings. Used for (de)serialization * * @var string[] */ protected static $swaggerFormats = [ 'online' => null, 'dnssec' => null, 'description' => null, 'title' => null, 'certificateIssure' => null, 'certificateValid' => null, 'ipv4' => null, 'ipv6' => null, 'mx' => null, 'ns' => null, ]; /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ protected static $attributeMap = [ 'online' => 'online', 'dnssec' => 'dnssec', 'description' => 'description', 'title' => 'title', 'certificateIssure' => 'certificateIssure', 'certificateValid' => 'certificateValid', 'ipv4' => 'ipv4', 'ipv6' => 'ipv6', 'mx' => 'mx', 'ns' => 'ns', ]; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ protected static $setters = [ 'online' => 'setOnline', 'dnssec' => 'setDnssec', 'description' => 'setDescription', 'title' => 'setTitle', 'certificateIssure' => 'setCertificateIssure', 'certificateValid' => 'setCertificateValid', 'ipv4' => 'setIpv4', 'ipv6' => 'setIpv6', 'mx' => 'setMx', 'ns' => 'setNs', ]; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ protected static $getters = [ 'online' => 'getOnline', 'dnssec' => 'getDnssec', 'description' => 'getDescription', 'title' => 'getTitle', 'certificateIssure' => 'getCertificateIssure', 'certificateValid' => 'getCertificateValid', 'ipv4' => 'getIpv4', 'ipv6' => 'getIpv6', 'mx' => 'getMx', 'ns' => 'getNs', ]; /** * 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['online'] = isset($data['online']) ? $this->createData($data['online'], 'online') : null; $this->container['dnssec'] = isset($data['dnssec']) ? $this->createData($data['dnssec'], 'dnssec') : null; $this->container['description'] = isset($data['description']) ? $this->createData($data['description'], 'description') : null; $this->container['title'] = isset($data['title']) ? $this->createData($data['title'], 'title') : null; $this->container['certificateIssure'] = isset($data['certificateIssure']) ? $this->createData($data['certificateIssure'], 'certificateIssure') : null; $this->container['certificateValid'] = isset($data['certificateValid']) ? $this->createData($data['certificateValid'], 'certificateValid') : null; $this->container['ipv4'] = isset($data['ipv4']) ? $this->createData($data['ipv4'], 'ipv4') : null; $this->container['ipv6'] = isset($data['ipv6']) ? $this->createData($data['ipv6'], 'ipv6') : null; $this->container['mx'] = isset($data['mx']) ? $this->createData($data['mx'], 'mx') : null; $this->container['ns'] = isset($data['ns']) ? $this->createData($data['ns'], 'ns') : 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 online * * @return bool */ public function getOnline() { return $this->container['online']; } /** * Sets online * * @param bool $online online * * @return $this */ public function setOnline($online) { $this->container['online'] = $online; return $this; } /** * Gets dnssec * * @return bool */ public function getDnssec() { return $this->container['dnssec']; } /** * Sets dnssec * * @param bool $dnssec dnssec * * @return $this */ public function setDnssec($dnssec) { $this->container['dnssec'] = $dnssec; return $this; } /** * Gets description * * @return string */ public function getDescription() { return $this->container['description']; } /** * Sets description * * @param string $description description * * @return $this */ public function setDescription($description) { $this->container['description'] = $description; return $this; } /** * Gets title * * @return string */ public function getTitle() { return $this->container['title']; } /** * Sets title * * @param string $title title * * @return $this */ public function setTitle($title) { $this->container['title'] = $title; return $this; } /** * Gets certificateIssure * * @return string */ public function getCertificateIssure() { return $this->container['certificateIssure']; } /** * Sets certificateIssure * * @param string $certificateIssure certificateIssure * * @return $this */ public function setCertificateIssure($certificateIssure) { $this->container['certificateIssure'] = $certificateIssure; return $this; } /** * Gets certificateValid * * @return bool */ public function getCertificateValid() { return $this->container['certificateValid']; } /** * Sets certificateValid * * @param bool $certificateValid certificateValid * * @return $this */ public function setCertificateValid($certificateValid) { $this->container['certificateValid'] = $certificateValid; return $this; } /** * Gets ipv4 * * @return string[] */ public function getIpv4() { return $this->container['ipv4']; } /** * Sets ipv4 * * @param string[] $ipv4 ipv4 * * @return $this */ public function setIpv4($ipv4) { $this->container['ipv4'] = $ipv4; return $this; } /** * Gets ipv6 * * @return string[] */ public function getIpv6() { return $this->container['ipv6']; } /** * Sets ipv6 * * @param string[] $ipv6 ipv6 * * @return $this */ public function setIpv6($ipv6) { $this->container['ipv6'] = $ipv6; return $this; } /** * Gets mx * * @return string[] */ public function getMx() { return $this->container['mx']; } /** * Sets mx * * @param string[] $mx mx * * @return $this */ public function setMx($mx) { $this->container['mx'] = $mx; return $this; } /** * Gets ns * * @return string[] */ public function getNs() { return $this->container['ns']; } /** * Sets ns * * @param string[] $ns ns * * @return $this */ public function setNs($ns) { $this->container['ns'] = $ns; 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:----aZOOzIWfR4/rWuDkmzbvHg5WcBCZPs6b1Zmb1iUT1LoxzNaxmJeii4SW1LL3gnZKQd+ldoUxBsY2U0M1dg0p0JcpmabnQr/Ona6BOOAQbGz5pz1slHlJH9dT2DNPcRYQj9/2UBlTeC3PpUa43lqpc0R0fO5CmJ9+uwUhBWyntSfRzQ5Xc/Mj33upbRI3TucxLxlCZvig8oCnEeV19VbTeKwcWWFCIQTHRaG5JuyDvkrSBqT61BpcWicqBkGV+XZ4jUDL8mpPDUC2v/MUtisaWaCnrRyOwZA1Z642HIk7M03QD3tFyN7dqeXxw3U0rVB2HqkwD+KO3DxCQ01fkZgPKorbMGu/234aTVCWmPi4FwDBLnEnn0/N/+sP/eP/w0Z4R+YSZlsfzGztJn581O7iSlXQOryopan+be5wrj3iSlNg8v5N7xLlCgQUaUc3ANZTzeFEnLIR6giriHNkT5Bsw8A0IqMAQ3xy2dU7HTIUKWOk0gR4xJtzIWBMGixEVXl9uuC/uYC4IXOVZua83EyVkbvjJZc4d8Gu92eV3uryv0zmWJ/8lpErJ4Bt3jEc8thPfTHoyx/Y0ORaCCYJn3OXMAPJABR5Bse9RUHuaUmiO69HY7ehFXL2qjWkfB6i8pfoYBU5D2rd+4EurmjEC5GhUWT2yX7uD5rHItKjAlva8no=----ATTACHMENT:----MjAwNzA0MzY1MTc3MDM2NyA5OTkxNjY4OTQ3MDg4NTQ5IDg0MDM3ODU2NTEwMjg2NDE=