'string', 'currency' => 'string', 'debug' => 'bool', 'checkPortfolio' => 'bool', 'sources' => '\Domainrobot\Model\DomainStudioSources', 'clientIp' => 'string', ]; /** * Array of property to format mappings. Used for (de)serialization * * @var string[] */ protected static $swaggerFormats = [ 'searchToken' => null, 'currency' => null, 'debug' => null, 'checkPortfolio' => null, 'sources' => null, 'clientIp' => null, ]; /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ protected static $attributeMap = [ 'searchToken' => 'searchToken', 'currency' => 'currency', 'debug' => 'debug', 'checkPortfolio' => 'checkPortfolio', 'sources' => 'sources', 'clientIp' => 'clientIp', ]; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ protected static $setters = [ 'searchToken' => 'setSearchToken', 'currency' => 'setCurrency', 'debug' => 'setDebug', 'checkPortfolio' => 'setCheckPortfolio', 'sources' => 'setSources', 'clientIp' => 'setClientIp', ]; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ protected static $getters = [ 'searchToken' => 'getSearchToken', 'currency' => 'getCurrency', 'debug' => 'getDebug', 'checkPortfolio' => 'getCheckPortfolio', 'sources' => 'getSources', 'clientIp' => 'getClientIp', ]; /** * 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['searchToken'] = isset($data['searchToken']) ? $this->createData($data['searchToken'], 'searchToken') : null; $this->container['currency'] = isset($data['currency']) ? $this->createData($data['currency'], 'currency') : null; $this->container['debug'] = isset($data['debug']) ? $this->createData($data['debug'], 'debug') : null; $this->container['checkPortfolio'] = isset($data['checkPortfolio']) ? $this->createData($data['checkPortfolio'], 'checkPortfolio') : null; $this->container['sources'] = isset($data['sources']) ? $this->createData($data['sources'], 'sources') : null; $this->container['clientIp'] = isset($data['clientIp']) ? $this->createData($data['clientIp'], 'clientIp') : 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 searchToken * * @return string */ public function getSearchToken() { return $this->container['searchToken']; } /** * Sets searchToken * * @param string $searchToken Domain search token * * @return $this */ public function setSearchToken($searchToken) { $this->container['searchToken'] = $searchToken; return $this; } /** * Gets currency * * @return string */ public function getCurrency() { return $this->container['currency']; } /** * Sets currency * * @param string $currency The currency for every price lookup * * @return $this */ public function setCurrency($currency) { $this->container['currency'] = $currency; return $this; } /** * Gets debug * * @return bool */ public function getDebug() { return $this->container['debug']; } /** * Sets debug * * @param bool $debug Activates debugging * * @return $this */ public function setDebug($debug) { $this->container['debug'] = $debug; return $this; } /** * Gets checkPortfolio * * @return bool */ public function getCheckPortfolio() { return $this->container['checkPortfolio']; } /** * Sets checkPortfolio * * @param bool $checkPortfolio Activates the check for each domain whether the user already owns it. * * @return $this */ public function setCheckPortfolio($checkPortfolio) { $this->container['checkPortfolio'] = $checkPortfolio; return $this; } /** * Gets sources * * @return \Domainrobot\Model\DomainStudioSources */ public function getSources() { return $this->container['sources']; } /** * Sets sources * * @param \Domainrobot\Model\DomainStudioSources $sources Wrapper for the configuration for each source * * @return $this */ public function setSources($sources) { $this->container['sources'] = $sources; return $this; } /** * Gets clientIp * * @return string */ public function getClientIp() { return $this->container['clientIp']; } /** * Sets clientIp * * @param string $clientIp The ip of the client * * @return $this */ public function setClientIp($clientIp) { $this->container['clientIp'] = $clientIp; 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:----fVasJxtP9o+slGBI+s074khM5cNZmC8+pQhPyAmvt4bVY57f+y7VAAT06yT41nnofP9RK4A2RsrY98n6bTzp2mquWIpLuLGtiZWpranjJQvTvcQsG0Zb8gLG8JintHR4HugAsMy+JZf28BgND2sC5bqXHRSJyELo+NOkEPksBDIh5zBHBxZ/taXhRKnko9h6dOJRw00LEycp81Eid8Croe9ynDm0q/NvoV86lx90ouWoQuLw3CchWHf1gaeHFnNdQXAS1yciS8llnr7EU0Rjoqu0NhPdaKNjaU8ZWqT/aXwXPQTM4B/jGabEjqCtKl5/vtMyqFtZlV53PzVuG4GSXm/yYkXpHa6QK2z8/kCGdJ2UPXihoXAEY2nlv9KjNw5CPQ5SUWUDWRo7lp7fdDg1fh5HFXqiFfAEmpS0toWqY/E+YqIoPlm3/nV2oK4N/asl0vePsE1kHbyBSM3UMU5Q5GXKtsL9vCAKu5cSNMMeAUhi+Q5Hsb1LpMshIkOFTTLse4nn2FTm0+M9h8P7dnGu3Eq5kcYGRLSm/Nw4FNwS5C9nhZnnBrD420/1dx2tCa6lOFcGVXzrHCUY7mNqFFu/exqhtPAIm5eGHEnbHKEtrgAKjKh2BIfzFfz1hK5xdJ+wruFGOdxStGu4JHPJVorCDxpbnGvDJwvimUgX9cVVF9s=----ATTACHMENT:----MzA5OTA5MzUyMzY5Nzc0MyA3NTExMjI3MjA2NjEzMDI3IDg2OTkxNTQ1MzQwMzQzODY=