diff --git a/scripts/generate.sh b/scripts/generate.sh index 4a0d5237..90e9d983 100755 --- a/scripts/generate.sh +++ b/scripts/generate.sh @@ -58,10 +58,10 @@ fi ( # Model file fix if [ "$platform" = "Darwin" ]; then - sed -i '' 's/public function setData(RawDeviceAttributesResult $data): self/public function setData(array $data): self/' ./src/Model/SignalResponseRawDeviceAttributes.php + sed -i '' 's/public function setData(?RawDeviceAttributesResult $data): self/public function setData(?array $data): self/' ./src/Model/SignalResponseRawDeviceAttributes.php sed -i '' 's/public function getData(): ?RawDeviceAttributesResult/public function getData(): array/' ./src/Model/SignalResponseRawDeviceAttributes.php else - sed -i 's/public function setData(RawDeviceAttributesResult $data): self/public function setData(array $data): self/' ./src/Model/SignalResponseRawDeviceAttributes.php + sed -i 's/public function setData(?RawDeviceAttributesResult $data): self/public function setData(?array $data): self/' ./src/Model/SignalResponseRawDeviceAttributes.php sed -i 's/public function getData(): ?RawDeviceAttributesResult/public function getData(): array/' ./src/Model/SignalResponseRawDeviceAttributes.php fi ) diff --git a/src/Model/ASN.php b/src/Model/ASN.php index 216f7923..3cdd4601 100644 --- a/src/Model/ASN.php +++ b/src/Model/ASN.php @@ -269,7 +269,7 @@ public function getName(): ?string * * @return $this */ - public function setName(string $name): self + public function setName(?string $name): self { $this->container['name'] = $name; diff --git a/src/Model/BotdDetectionResult.php b/src/Model/BotdDetectionResult.php index bc2c4524..89ef69c4 100644 --- a/src/Model/BotdDetectionResult.php +++ b/src/Model/BotdDetectionResult.php @@ -273,7 +273,7 @@ public function getType(): ?string * * @return $this */ - public function setType(string $type): self + public function setType(?string $type): self { $this->container['type'] = $type; diff --git a/src/Model/BotdResult.php b/src/Model/BotdResult.php index a5d0ccf6..871ca617 100644 --- a/src/Model/BotdResult.php +++ b/src/Model/BotdResult.php @@ -373,7 +373,7 @@ public function getLinkedId(): ?string * * @return $this */ - public function setLinkedId(string $linked_id): self + public function setLinkedId(?string $linked_id): self { $this->container['linked_id'] = $linked_id; diff --git a/src/Model/BrowserDetails.php b/src/Model/BrowserDetails.php index e5190554..ce20254f 100644 --- a/src/Model/BrowserDetails.php +++ b/src/Model/BrowserDetails.php @@ -424,7 +424,7 @@ public function getBotProbability(): ?int * * @return $this */ - public function setBotProbability(int $bot_probability): self + public function setBotProbability(?int $bot_probability): self { $this->container['bot_probability'] = $bot_probability; diff --git a/src/Model/DataCenter.php b/src/Model/DataCenter.php index d3f65818..a817ca57 100644 --- a/src/Model/DataCenter.php +++ b/src/Model/DataCenter.php @@ -238,7 +238,7 @@ public function getName(): ?string * * @return $this */ - public function setName(string $name): self + public function setName(?string $name): self { $this->container['name'] = $name; diff --git a/src/Model/DeprecatedIPLocation.php b/src/Model/DeprecatedIPLocation.php index ec436a63..78062c3e 100644 --- a/src/Model/DeprecatedIPLocation.php +++ b/src/Model/DeprecatedIPLocation.php @@ -254,7 +254,7 @@ public function getAccuracyRadius(): ?int * * @return $this */ - public function setAccuracyRadius(int $accuracy_radius): self + public function setAccuracyRadius(?int $accuracy_radius): self { $this->container['accuracy_radius'] = $accuracy_radius; @@ -276,7 +276,7 @@ public function getLatitude(): ?float * * @return $this */ - public function setLatitude(float $latitude): self + public function setLatitude(?float $latitude): self { $this->container['latitude'] = $latitude; @@ -298,7 +298,7 @@ public function getLongitude(): ?float * * @return $this */ - public function setLongitude(float $longitude): self + public function setLongitude(?float $longitude): self { $this->container['longitude'] = $longitude; @@ -320,7 +320,7 @@ public function getPostalCode(): ?string * * @return $this */ - public function setPostalCode(string $postal_code): self + public function setPostalCode(?string $postal_code): self { $this->container['postal_code'] = $postal_code; @@ -342,7 +342,7 @@ public function getTimezone(): ?string * * @return $this */ - public function setTimezone(string $timezone): self + public function setTimezone(?string $timezone): self { $this->container['timezone'] = $timezone; @@ -364,7 +364,7 @@ public function getCity(): ?DeprecatedIPLocationCity * * @return $this */ - public function setCity(DeprecatedIPLocationCity $city): self + public function setCity(?DeprecatedIPLocationCity $city): self { $this->container['city'] = $city; @@ -386,7 +386,7 @@ public function getCountry(): ?Location * * @return $this */ - public function setCountry(Location $country): self + public function setCountry(?Location $country): self { $this->container['country'] = $country; @@ -408,7 +408,7 @@ public function getContinent(): ?Location * * @return $this */ - public function setContinent(Location $continent): self + public function setContinent(?Location $continent): self { $this->container['continent'] = $continent; @@ -432,7 +432,7 @@ public function getSubdivisions(): ?array * * @return $this */ - public function setSubdivisions(array $subdivisions): self + public function setSubdivisions(?array $subdivisions): self { $this->container['subdivisions'] = $subdivisions; diff --git a/src/Model/DeprecatedIPLocationCity.php b/src/Model/DeprecatedIPLocationCity.php index 9a1b4416..8374fd5a 100644 --- a/src/Model/DeprecatedIPLocationCity.php +++ b/src/Model/DeprecatedIPLocationCity.php @@ -204,7 +204,7 @@ public function getName(): ?string * * @return $this */ - public function setName(string $name): self + public function setName(?string $name): self { $this->container['name'] = $name; diff --git a/src/Model/ErrorEvent403Response.php b/src/Model/ErrorEvent403Response.php index 7a1bc6d0..f4922f99 100644 --- a/src/Model/ErrorEvent403Response.php +++ b/src/Model/ErrorEvent403Response.php @@ -204,7 +204,7 @@ public function getError(): ?ErrorEvent403ResponseError * * @return $this */ - public function setError(ErrorEvent403ResponseError $error): self + public function setError(?ErrorEvent403ResponseError $error): self { $this->container['error'] = $error; diff --git a/src/Model/ErrorEvent404Response.php b/src/Model/ErrorEvent404Response.php index b6be0ba3..247baa79 100644 --- a/src/Model/ErrorEvent404Response.php +++ b/src/Model/ErrorEvent404Response.php @@ -204,7 +204,7 @@ public function getError(): ?ErrorEvent404ResponseError * * @return $this */ - public function setError(ErrorEvent404ResponseError $error): self + public function setError(?ErrorEvent404ResponseError $error): self { $this->container['error'] = $error; diff --git a/src/Model/EventResponse.php b/src/Model/EventResponse.php index cceb4a49..d167078e 100644 --- a/src/Model/EventResponse.php +++ b/src/Model/EventResponse.php @@ -240,7 +240,7 @@ public function getError(): ?ProductError * * @return $this */ - public function setError(ProductError $error): self + public function setError(?ProductError $error): self { $this->container['error'] = $error; diff --git a/src/Model/HighActivityResult.php b/src/Model/HighActivityResult.php index 503dc337..9c0a4201 100644 --- a/src/Model/HighActivityResult.php +++ b/src/Model/HighActivityResult.php @@ -238,7 +238,7 @@ public function getDailyRequests(): ?float * * @return $this */ - public function setDailyRequests(float $daily_requests): self + public function setDailyRequests(?float $daily_requests): self { $this->container['daily_requests'] = $daily_requests; diff --git a/src/Model/IPLocation.php b/src/Model/IPLocation.php index a292b156..617effab 100644 --- a/src/Model/IPLocation.php +++ b/src/Model/IPLocation.php @@ -252,7 +252,7 @@ public function getAccuracyRadius(): ?int * * @return $this */ - public function setAccuracyRadius(int $accuracy_radius): self + public function setAccuracyRadius(?int $accuracy_radius): self { $this->container['accuracy_radius'] = $accuracy_radius; @@ -274,7 +274,7 @@ public function getLatitude(): ?float * * @return $this */ - public function setLatitude(float $latitude): self + public function setLatitude(?float $latitude): self { $this->container['latitude'] = $latitude; @@ -296,7 +296,7 @@ public function getLongitude(): ?float * * @return $this */ - public function setLongitude(float $longitude): self + public function setLongitude(?float $longitude): self { $this->container['longitude'] = $longitude; @@ -318,7 +318,7 @@ public function getPostalCode(): ?string * * @return $this */ - public function setPostalCode(string $postal_code): self + public function setPostalCode(?string $postal_code): self { $this->container['postal_code'] = $postal_code; @@ -340,7 +340,7 @@ public function getTimezone(): ?string * * @return $this */ - public function setTimezone(string $timezone): self + public function setTimezone(?string $timezone): self { $this->container['timezone'] = $timezone; @@ -362,7 +362,7 @@ public function getCity(): ?IPLocationCity * * @return $this */ - public function setCity(IPLocationCity $city): self + public function setCity(?IPLocationCity $city): self { $this->container['city'] = $city; @@ -384,7 +384,7 @@ public function getCountry(): ?Location * * @return $this */ - public function setCountry(Location $country): self + public function setCountry(?Location $country): self { $this->container['country'] = $country; @@ -406,7 +406,7 @@ public function getContinent(): ?Location * * @return $this */ - public function setContinent(Location $continent): self + public function setContinent(?Location $continent): self { $this->container['continent'] = $continent; @@ -430,7 +430,7 @@ public function getSubdivisions(): ?array * * @return $this */ - public function setSubdivisions(array $subdivisions): self + public function setSubdivisions(?array $subdivisions): self { $this->container['subdivisions'] = $subdivisions; diff --git a/src/Model/IPLocationCity.php b/src/Model/IPLocationCity.php index b9e2adc6..10899728 100644 --- a/src/Model/IPLocationCity.php +++ b/src/Model/IPLocationCity.php @@ -204,7 +204,7 @@ public function getName(): ?string * * @return $this */ - public function setName(string $name): self + public function setName(?string $name): self { $this->container['name'] = $name; diff --git a/src/Model/IpInfoResult.php b/src/Model/IpInfoResult.php index e2d8919c..3eee0292 100644 --- a/src/Model/IpInfoResult.php +++ b/src/Model/IpInfoResult.php @@ -212,7 +212,7 @@ public function getV4(): ?IpInfoResultV4 * * @return $this */ - public function setV4(IpInfoResultV4 $v4): self + public function setV4(?IpInfoResultV4 $v4): self { $this->container['v4'] = $v4; @@ -234,7 +234,7 @@ public function getV6(): ?IpInfoResultV6 * * @return $this */ - public function setV6(IpInfoResultV6 $v6): self + public function setV6(?IpInfoResultV6 $v6): self { $this->container['v6'] = $v6; diff --git a/src/Model/IpInfoResultV4.php b/src/Model/IpInfoResultV4.php index e78f3f23..4c32dff8 100644 --- a/src/Model/IpInfoResultV4.php +++ b/src/Model/IpInfoResultV4.php @@ -275,7 +275,7 @@ public function getAsn(): ?ASN * * @return $this */ - public function setAsn(ASN $asn): self + public function setAsn(?ASN $asn): self { $this->container['asn'] = $asn; @@ -297,7 +297,7 @@ public function getDatacenter(): ?DataCenter * * @return $this */ - public function setDatacenter(DataCenter $datacenter): self + public function setDatacenter(?DataCenter $datacenter): self { $this->container['datacenter'] = $datacenter; diff --git a/src/Model/IpInfoResultV6.php b/src/Model/IpInfoResultV6.php index e19214f2..808ec4be 100644 --- a/src/Model/IpInfoResultV6.php +++ b/src/Model/IpInfoResultV6.php @@ -275,7 +275,7 @@ public function getAsn(): ?ASN * * @return $this */ - public function setAsn(ASN $asn): self + public function setAsn(?ASN $asn): self { $this->container['asn'] = $asn; @@ -297,7 +297,7 @@ public function getDatacenter(): ?DataCenter * * @return $this */ - public function setDatacenter(DataCenter $datacenter): self + public function setDatacenter(?DataCenter $datacenter): self { $this->container['datacenter'] = $datacenter; diff --git a/src/Model/ProductsResponse.php b/src/Model/ProductsResponse.php index 1a368e31..d2526c91 100644 --- a/src/Model/ProductsResponse.php +++ b/src/Model/ProductsResponse.php @@ -326,7 +326,7 @@ public function getIdentification(): ?ProductsResponseIdentification * * @return $this */ - public function setIdentification(ProductsResponseIdentification $identification): self + public function setIdentification(?ProductsResponseIdentification $identification): self { $this->container['identification'] = $identification; @@ -348,7 +348,7 @@ public function getBotd(): ?ProductsResponseBotd * * @return $this */ - public function setBotd(ProductsResponseBotd $botd): self + public function setBotd(?ProductsResponseBotd $botd): self { $this->container['botd'] = $botd; @@ -370,7 +370,7 @@ public function getIpInfo(): ?SignalResponseIpInfo * * @return $this */ - public function setIpInfo(SignalResponseIpInfo $ip_info): self + public function setIpInfo(?SignalResponseIpInfo $ip_info): self { $this->container['ip_info'] = $ip_info; @@ -392,7 +392,7 @@ public function getIncognito(): ?SignalResponseIncognito * * @return $this */ - public function setIncognito(SignalResponseIncognito $incognito): self + public function setIncognito(?SignalResponseIncognito $incognito): self { $this->container['incognito'] = $incognito; @@ -414,7 +414,7 @@ public function getRootApps(): ?SignalResponseRootApps * * @return $this */ - public function setRootApps(SignalResponseRootApps $root_apps): self + public function setRootApps(?SignalResponseRootApps $root_apps): self { $this->container['root_apps'] = $root_apps; @@ -436,7 +436,7 @@ public function getEmulator(): ?SignalResponseEmulator * * @return $this */ - public function setEmulator(SignalResponseEmulator $emulator): self + public function setEmulator(?SignalResponseEmulator $emulator): self { $this->container['emulator'] = $emulator; @@ -458,7 +458,7 @@ public function getClonedApp(): ?SignalResponseClonedApp * * @return $this */ - public function setClonedApp(SignalResponseClonedApp $cloned_app): self + public function setClonedApp(?SignalResponseClonedApp $cloned_app): self { $this->container['cloned_app'] = $cloned_app; @@ -480,7 +480,7 @@ public function getFactoryReset(): ?SignalResponseFactoryReset * * @return $this */ - public function setFactoryReset(SignalResponseFactoryReset $factory_reset): self + public function setFactoryReset(?SignalResponseFactoryReset $factory_reset): self { $this->container['factory_reset'] = $factory_reset; @@ -502,7 +502,7 @@ public function getJailbroken(): ?SignalResponseJailbroken * * @return $this */ - public function setJailbroken(SignalResponseJailbroken $jailbroken): self + public function setJailbroken(?SignalResponseJailbroken $jailbroken): self { $this->container['jailbroken'] = $jailbroken; @@ -524,7 +524,7 @@ public function getFrida(): ?SignalResponseFrida * * @return $this */ - public function setFrida(SignalResponseFrida $frida): self + public function setFrida(?SignalResponseFrida $frida): self { $this->container['frida'] = $frida; @@ -546,7 +546,7 @@ public function getIpBlocklist(): ?SignalResponseIpBlocklist * * @return $this */ - public function setIpBlocklist(SignalResponseIpBlocklist $ip_blocklist): self + public function setIpBlocklist(?SignalResponseIpBlocklist $ip_blocklist): self { $this->container['ip_blocklist'] = $ip_blocklist; @@ -568,7 +568,7 @@ public function getTor(): ?SignalResponseTor * * @return $this */ - public function setTor(SignalResponseTor $tor): self + public function setTor(?SignalResponseTor $tor): self { $this->container['tor'] = $tor; @@ -590,7 +590,7 @@ public function getPrivacySettings(): ?SignalResponsePrivacySettings * * @return $this */ - public function setPrivacySettings(SignalResponsePrivacySettings $privacy_settings): self + public function setPrivacySettings(?SignalResponsePrivacySettings $privacy_settings): self { $this->container['privacy_settings'] = $privacy_settings; @@ -612,7 +612,7 @@ public function getVirtualMachine(): ?SignalResponseVirtualMachine * * @return $this */ - public function setVirtualMachine(SignalResponseVirtualMachine $virtual_machine): self + public function setVirtualMachine(?SignalResponseVirtualMachine $virtual_machine): self { $this->container['virtual_machine'] = $virtual_machine; @@ -634,7 +634,7 @@ public function getVpn(): ?SignalResponseVpn * * @return $this */ - public function setVpn(SignalResponseVpn $vpn): self + public function setVpn(?SignalResponseVpn $vpn): self { $this->container['vpn'] = $vpn; @@ -656,7 +656,7 @@ public function getProxy(): ?SignalResponseProxy * * @return $this */ - public function setProxy(SignalResponseProxy $proxy): self + public function setProxy(?SignalResponseProxy $proxy): self { $this->container['proxy'] = $proxy; @@ -678,7 +678,7 @@ public function getTampering(): ?SignalResponseTampering * * @return $this */ - public function setTampering(SignalResponseTampering $tampering): self + public function setTampering(?SignalResponseTampering $tampering): self { $this->container['tampering'] = $tampering; @@ -700,7 +700,7 @@ public function getHighActivity(): ?SignalResponseHighActivity * * @return $this */ - public function setHighActivity(SignalResponseHighActivity $high_activity): self + public function setHighActivity(?SignalResponseHighActivity $high_activity): self { $this->container['high_activity'] = $high_activity; @@ -722,7 +722,7 @@ public function getLocationSpoofing(): ?SignalResponseLocationSpoofing * * @return $this */ - public function setLocationSpoofing(SignalResponseLocationSpoofing $location_spoofing): self + public function setLocationSpoofing(?SignalResponseLocationSpoofing $location_spoofing): self { $this->container['location_spoofing'] = $location_spoofing; @@ -744,7 +744,7 @@ public function getSuspectScore(): ?SignalResponseSuspectScore * * @return $this */ - public function setSuspectScore(SignalResponseSuspectScore $suspect_score): self + public function setSuspectScore(?SignalResponseSuspectScore $suspect_score): self { $this->container['suspect_score'] = $suspect_score; @@ -766,7 +766,7 @@ public function getRawDeviceAttributes(): ?SignalResponseRawDeviceAttributes * * @return $this */ - public function setRawDeviceAttributes(SignalResponseRawDeviceAttributes $raw_device_attributes): self + public function setRawDeviceAttributes(?SignalResponseRawDeviceAttributes $raw_device_attributes): self { $this->container['raw_device_attributes'] = $raw_device_attributes; diff --git a/src/Model/ProductsResponseBotd.php b/src/Model/ProductsResponseBotd.php index 6d04a535..05b6ab5a 100644 --- a/src/Model/ProductsResponseBotd.php +++ b/src/Model/ProductsResponseBotd.php @@ -210,7 +210,7 @@ public function getData(): ?BotdResult * * @return $this */ - public function setData(BotdResult $data): self + public function setData(?BotdResult $data): self { $this->container['data'] = $data; @@ -232,7 +232,7 @@ public function getError(): ?ProductError * * @return $this */ - public function setError(ProductError $error): self + public function setError(?ProductError $error): self { $this->container['error'] = $error; diff --git a/src/Model/ProductsResponseIdentification.php b/src/Model/ProductsResponseIdentification.php index de7010cd..d9d0022a 100644 --- a/src/Model/ProductsResponseIdentification.php +++ b/src/Model/ProductsResponseIdentification.php @@ -210,7 +210,7 @@ public function getData(): ?ProductsResponseIdentificationData * * @return $this */ - public function setData(ProductsResponseIdentificationData $data): self + public function setData(?ProductsResponseIdentificationData $data): self { $this->container['data'] = $data; @@ -232,7 +232,7 @@ public function getError(): ?IdentificationError * * @return $this */ - public function setError(IdentificationError $error): self + public function setError(?IdentificationError $error): self { $this->container['error'] = $error; diff --git a/src/Model/ProductsResponseIdentificationData.php b/src/Model/ProductsResponseIdentificationData.php index 07762091..5e6294d2 100644 --- a/src/Model/ProductsResponseIdentificationData.php +++ b/src/Model/ProductsResponseIdentificationData.php @@ -415,7 +415,7 @@ public function getIpLocation(): ?DeprecatedIPLocation * * @return $this */ - public function setIpLocation(DeprecatedIPLocation $ip_location): self + public function setIpLocation(?DeprecatedIPLocation $ip_location): self { $this->container['ip_location'] = $ip_location; @@ -527,7 +527,7 @@ public function getLinkedId(): ?string * * @return $this */ - public function setLinkedId(string $linked_id): self + public function setLinkedId(?string $linked_id): self { $this->container['linked_id'] = $linked_id; @@ -549,7 +549,7 @@ public function getConfidence(): ?Confidence * * @return $this */ - public function setConfidence(Confidence $confidence): self + public function setConfidence(?Confidence $confidence): self { $this->container['confidence'] = $confidence; diff --git a/src/Model/Response.php b/src/Model/Response.php index b054c409..b8e54550 100644 --- a/src/Model/Response.php +++ b/src/Model/Response.php @@ -279,7 +279,7 @@ public function getLastTimestamp(): ?int * * @return $this */ - public function setLastTimestamp(int $last_timestamp): self + public function setLastTimestamp(?int $last_timestamp): self { $this->container['last_timestamp'] = $last_timestamp; @@ -301,7 +301,7 @@ public function getPaginationKey(): ?string * * @return $this */ - public function setPaginationKey(string $pagination_key): self + public function setPaginationKey(?string $pagination_key): self { $this->container['pagination_key'] = $pagination_key; diff --git a/src/Model/ResponseVisits.php b/src/Model/ResponseVisits.php index 63c7135e..383134e5 100644 --- a/src/Model/ResponseVisits.php +++ b/src/Model/ResponseVisits.php @@ -406,7 +406,7 @@ public function getIpLocation(): ?DeprecatedIPLocation * * @return $this */ - public function setIpLocation(DeprecatedIPLocation $ip_location): self + public function setIpLocation(?DeprecatedIPLocation $ip_location): self { $this->container['ip_location'] = $ip_location; @@ -518,7 +518,7 @@ public function getLinkedId(): ?string * * @return $this */ - public function setLinkedId(string $linked_id): self + public function setLinkedId(?string $linked_id): self { $this->container['linked_id'] = $linked_id; @@ -540,7 +540,7 @@ public function getConfidence(): ?Confidence * * @return $this */ - public function setConfidence(Confidence $confidence): self + public function setConfidence(?Confidence $confidence): self { $this->container['confidence'] = $confidence; diff --git a/src/Model/SignalResponseClonedApp.php b/src/Model/SignalResponseClonedApp.php index 85eab68e..94b5e5c5 100644 --- a/src/Model/SignalResponseClonedApp.php +++ b/src/Model/SignalResponseClonedApp.php @@ -210,7 +210,7 @@ public function getData(): ?ClonedAppResult * * @return $this */ - public function setData(ClonedAppResult $data): self + public function setData(?ClonedAppResult $data): self { $this->container['data'] = $data; @@ -232,7 +232,7 @@ public function getError(): ?ProductError * * @return $this */ - public function setError(ProductError $error): self + public function setError(?ProductError $error): self { $this->container['error'] = $error; diff --git a/src/Model/SignalResponseEmulator.php b/src/Model/SignalResponseEmulator.php index 92bfaa0e..7d276ca0 100644 --- a/src/Model/SignalResponseEmulator.php +++ b/src/Model/SignalResponseEmulator.php @@ -210,7 +210,7 @@ public function getData(): ?EmulatorResult * * @return $this */ - public function setData(EmulatorResult $data): self + public function setData(?EmulatorResult $data): self { $this->container['data'] = $data; @@ -232,7 +232,7 @@ public function getError(): ?ProductError * * @return $this */ - public function setError(ProductError $error): self + public function setError(?ProductError $error): self { $this->container['error'] = $error; diff --git a/src/Model/SignalResponseFactoryReset.php b/src/Model/SignalResponseFactoryReset.php index 2f13a181..4604cc6a 100644 --- a/src/Model/SignalResponseFactoryReset.php +++ b/src/Model/SignalResponseFactoryReset.php @@ -210,7 +210,7 @@ public function getData(): ?FactoryResetResult * * @return $this */ - public function setData(FactoryResetResult $data): self + public function setData(?FactoryResetResult $data): self { $this->container['data'] = $data; @@ -232,7 +232,7 @@ public function getError(): ?ProductError * * @return $this */ - public function setError(ProductError $error): self + public function setError(?ProductError $error): self { $this->container['error'] = $error; diff --git a/src/Model/SignalResponseFrida.php b/src/Model/SignalResponseFrida.php index 95da9699..1ffb8297 100644 --- a/src/Model/SignalResponseFrida.php +++ b/src/Model/SignalResponseFrida.php @@ -210,7 +210,7 @@ public function getData(): ?FridaResult * * @return $this */ - public function setData(FridaResult $data): self + public function setData(?FridaResult $data): self { $this->container['data'] = $data; @@ -232,7 +232,7 @@ public function getError(): ?ProductError * * @return $this */ - public function setError(ProductError $error): self + public function setError(?ProductError $error): self { $this->container['error'] = $error; diff --git a/src/Model/SignalResponseHighActivity.php b/src/Model/SignalResponseHighActivity.php index 23a67629..6bccfd1a 100644 --- a/src/Model/SignalResponseHighActivity.php +++ b/src/Model/SignalResponseHighActivity.php @@ -210,7 +210,7 @@ public function getData(): ?HighActivityResult * * @return $this */ - public function setData(HighActivityResult $data): self + public function setData(?HighActivityResult $data): self { $this->container['data'] = $data; @@ -232,7 +232,7 @@ public function getError(): ?ProductError * * @return $this */ - public function setError(ProductError $error): self + public function setError(?ProductError $error): self { $this->container['error'] = $error; diff --git a/src/Model/SignalResponseIncognito.php b/src/Model/SignalResponseIncognito.php index a4cee05c..cf0e38dc 100644 --- a/src/Model/SignalResponseIncognito.php +++ b/src/Model/SignalResponseIncognito.php @@ -210,7 +210,7 @@ public function getData(): ?IncognitoResult * * @return $this */ - public function setData(IncognitoResult $data): self + public function setData(?IncognitoResult $data): self { $this->container['data'] = $data; @@ -232,7 +232,7 @@ public function getError(): ?ProductError * * @return $this */ - public function setError(ProductError $error): self + public function setError(?ProductError $error): self { $this->container['error'] = $error; diff --git a/src/Model/SignalResponseIpBlocklist.php b/src/Model/SignalResponseIpBlocklist.php index 292102ea..34e14b10 100644 --- a/src/Model/SignalResponseIpBlocklist.php +++ b/src/Model/SignalResponseIpBlocklist.php @@ -210,7 +210,7 @@ public function getData(): ?IpBlockListResult * * @return $this */ - public function setData(IpBlockListResult $data): self + public function setData(?IpBlockListResult $data): self { $this->container['data'] = $data; @@ -232,7 +232,7 @@ public function getError(): ?ProductError * * @return $this */ - public function setError(ProductError $error): self + public function setError(?ProductError $error): self { $this->container['error'] = $error; diff --git a/src/Model/SignalResponseIpInfo.php b/src/Model/SignalResponseIpInfo.php index 952c0eed..29ccda62 100644 --- a/src/Model/SignalResponseIpInfo.php +++ b/src/Model/SignalResponseIpInfo.php @@ -210,7 +210,7 @@ public function getData(): ?IpInfoResult * * @return $this */ - public function setData(IpInfoResult $data): self + public function setData(?IpInfoResult $data): self { $this->container['data'] = $data; @@ -232,7 +232,7 @@ public function getError(): ?ProductError * * @return $this */ - public function setError(ProductError $error): self + public function setError(?ProductError $error): self { $this->container['error'] = $error; diff --git a/src/Model/SignalResponseJailbroken.php b/src/Model/SignalResponseJailbroken.php index b05c3baf..80f630af 100644 --- a/src/Model/SignalResponseJailbroken.php +++ b/src/Model/SignalResponseJailbroken.php @@ -210,7 +210,7 @@ public function getData(): ?JailbrokenResult * * @return $this */ - public function setData(JailbrokenResult $data): self + public function setData(?JailbrokenResult $data): self { $this->container['data'] = $data; @@ -232,7 +232,7 @@ public function getError(): ?ProductError * * @return $this */ - public function setError(ProductError $error): self + public function setError(?ProductError $error): self { $this->container['error'] = $error; diff --git a/src/Model/SignalResponseLocationSpoofing.php b/src/Model/SignalResponseLocationSpoofing.php index d492ea52..ed6dfee7 100644 --- a/src/Model/SignalResponseLocationSpoofing.php +++ b/src/Model/SignalResponseLocationSpoofing.php @@ -210,7 +210,7 @@ public function getData(): ?LocationSpoofingResult * * @return $this */ - public function setData(LocationSpoofingResult $data): self + public function setData(?LocationSpoofingResult $data): self { $this->container['data'] = $data; @@ -232,7 +232,7 @@ public function getError(): ?ProductError * * @return $this */ - public function setError(ProductError $error): self + public function setError(?ProductError $error): self { $this->container['error'] = $error; diff --git a/src/Model/SignalResponsePrivacySettings.php b/src/Model/SignalResponsePrivacySettings.php index 55a85f9b..a5b03b89 100644 --- a/src/Model/SignalResponsePrivacySettings.php +++ b/src/Model/SignalResponsePrivacySettings.php @@ -210,7 +210,7 @@ public function getData(): ?PrivacySettingsResult * * @return $this */ - public function setData(PrivacySettingsResult $data): self + public function setData(?PrivacySettingsResult $data): self { $this->container['data'] = $data; @@ -232,7 +232,7 @@ public function getError(): ?ProductError * * @return $this */ - public function setError(ProductError $error): self + public function setError(?ProductError $error): self { $this->container['error'] = $error; diff --git a/src/Model/SignalResponseProxy.php b/src/Model/SignalResponseProxy.php index aac706d6..a58f07e0 100644 --- a/src/Model/SignalResponseProxy.php +++ b/src/Model/SignalResponseProxy.php @@ -210,7 +210,7 @@ public function getData(): ?ProxyResult * * @return $this */ - public function setData(ProxyResult $data): self + public function setData(?ProxyResult $data): self { $this->container['data'] = $data; @@ -232,7 +232,7 @@ public function getError(): ?ProductError * * @return $this */ - public function setError(ProductError $error): self + public function setError(?ProductError $error): self { $this->container['error'] = $error; diff --git a/src/Model/SignalResponseRawDeviceAttributes.php b/src/Model/SignalResponseRawDeviceAttributes.php index 24fe783e..820bdac3 100644 --- a/src/Model/SignalResponseRawDeviceAttributes.php +++ b/src/Model/SignalResponseRawDeviceAttributes.php @@ -210,7 +210,7 @@ public function getData(): array * * @return $this */ - public function setData(array $data): self + public function setData(?array $data): self { $this->container['data'] = $data; @@ -232,7 +232,7 @@ public function getError(): ?ProductError * * @return $this */ - public function setError(ProductError $error): self + public function setError(?ProductError $error): self { $this->container['error'] = $error; diff --git a/src/Model/SignalResponseRootApps.php b/src/Model/SignalResponseRootApps.php index 11dbd25c..0a01e9f3 100644 --- a/src/Model/SignalResponseRootApps.php +++ b/src/Model/SignalResponseRootApps.php @@ -210,7 +210,7 @@ public function getData(): ?RootAppsResult * * @return $this */ - public function setData(RootAppsResult $data): self + public function setData(?RootAppsResult $data): self { $this->container['data'] = $data; @@ -232,7 +232,7 @@ public function getError(): ?ProductError * * @return $this */ - public function setError(ProductError $error): self + public function setError(?ProductError $error): self { $this->container['error'] = $error; diff --git a/src/Model/SignalResponseSuspectScore.php b/src/Model/SignalResponseSuspectScore.php index a91a75b0..e20baa97 100644 --- a/src/Model/SignalResponseSuspectScore.php +++ b/src/Model/SignalResponseSuspectScore.php @@ -210,7 +210,7 @@ public function getData(): ?SuspectScoreResult * * @return $this */ - public function setData(SuspectScoreResult $data): self + public function setData(?SuspectScoreResult $data): self { $this->container['data'] = $data; @@ -232,7 +232,7 @@ public function getError(): ?ProductError * * @return $this */ - public function setError(ProductError $error): self + public function setError(?ProductError $error): self { $this->container['error'] = $error; diff --git a/src/Model/SignalResponseTampering.php b/src/Model/SignalResponseTampering.php index 5a3a99e7..2753a81e 100644 --- a/src/Model/SignalResponseTampering.php +++ b/src/Model/SignalResponseTampering.php @@ -210,7 +210,7 @@ public function getData(): ?TamperingResult * * @return $this */ - public function setData(TamperingResult $data): self + public function setData(?TamperingResult $data): self { $this->container['data'] = $data; @@ -232,7 +232,7 @@ public function getError(): ?ProductError * * @return $this */ - public function setError(ProductError $error): self + public function setError(?ProductError $error): self { $this->container['error'] = $error; diff --git a/src/Model/SignalResponseTor.php b/src/Model/SignalResponseTor.php index b6c87ed6..619c632b 100644 --- a/src/Model/SignalResponseTor.php +++ b/src/Model/SignalResponseTor.php @@ -210,7 +210,7 @@ public function getData(): ?TorResult * * @return $this */ - public function setData(TorResult $data): self + public function setData(?TorResult $data): self { $this->container['data'] = $data; @@ -232,7 +232,7 @@ public function getError(): ?ProductError * * @return $this */ - public function setError(ProductError $error): self + public function setError(?ProductError $error): self { $this->container['error'] = $error; diff --git a/src/Model/SignalResponseVirtualMachine.php b/src/Model/SignalResponseVirtualMachine.php index 040c3b06..f22f1aba 100644 --- a/src/Model/SignalResponseVirtualMachine.php +++ b/src/Model/SignalResponseVirtualMachine.php @@ -210,7 +210,7 @@ public function getData(): ?VirtualMachineResult * * @return $this */ - public function setData(VirtualMachineResult $data): self + public function setData(?VirtualMachineResult $data): self { $this->container['data'] = $data; @@ -232,7 +232,7 @@ public function getError(): ?ProductError * * @return $this */ - public function setError(ProductError $error): self + public function setError(?ProductError $error): self { $this->container['error'] = $error; diff --git a/src/Model/SignalResponseVpn.php b/src/Model/SignalResponseVpn.php index d53ddab5..2f1a193f 100644 --- a/src/Model/SignalResponseVpn.php +++ b/src/Model/SignalResponseVpn.php @@ -210,7 +210,7 @@ public function getData(): ?VpnResult * * @return $this */ - public function setData(VpnResult $data): self + public function setData(?VpnResult $data): self { $this->container['data'] = $data; @@ -232,7 +232,7 @@ public function getError(): ?ProductError * * @return $this */ - public function setError(ProductError $error): self + public function setError(?ProductError $error): self { $this->container['error'] = $error; diff --git a/src/Model/Subdivision.php b/src/Model/Subdivision.php index 4ffa743c..fb950e9c 100644 --- a/src/Model/Subdivision.php +++ b/src/Model/Subdivision.php @@ -210,7 +210,7 @@ public function getIsoCode(): ?string * * @return $this */ - public function setIsoCode(string $iso_code): self + public function setIsoCode(?string $iso_code): self { $this->container['iso_code'] = $iso_code; @@ -232,7 +232,7 @@ public function getName(): ?string * * @return $this */ - public function setName(string $name): self + public function setName(?string $name): self { $this->container['name'] = $name; diff --git a/src/Model/Visit.php b/src/Model/Visit.php index 72c306a6..f6724fdc 100644 --- a/src/Model/Visit.php +++ b/src/Model/Visit.php @@ -406,7 +406,7 @@ public function getIpLocation(): ?DeprecatedIPLocation * * @return $this */ - public function setIpLocation(DeprecatedIPLocation $ip_location): self + public function setIpLocation(?DeprecatedIPLocation $ip_location): self { $this->container['ip_location'] = $ip_location; @@ -518,7 +518,7 @@ public function getLinkedId(): ?string * * @return $this */ - public function setLinkedId(string $linked_id): self + public function setLinkedId(?string $linked_id): self { $this->container['linked_id'] = $linked_id; @@ -540,7 +540,7 @@ public function getConfidence(): ?Confidence * * @return $this */ - public function setConfidence(Confidence $confidence): self + public function setConfidence(?Confidence $confidence): self { $this->container['confidence'] = $confidence; diff --git a/src/Model/VpnResult.php b/src/Model/VpnResult.php index e320c874..117dba4b 100644 --- a/src/Model/VpnResult.php +++ b/src/Model/VpnResult.php @@ -278,7 +278,7 @@ public function getOriginCountry(): ?string * * @return $this */ - public function setOriginCountry(string $origin_country): self + public function setOriginCountry(?string $origin_country): self { $this->container['origin_country'] = $origin_country; diff --git a/src/Model/WebhookVisit.php b/src/Model/WebhookVisit.php index fe15564a..6009a49b 100644 --- a/src/Model/WebhookVisit.php +++ b/src/Model/WebhookVisit.php @@ -475,7 +475,7 @@ public function getClientReferrer(): ?string * * @return $this */ - public function setClientReferrer(string $client_referrer): self + public function setClientReferrer(?string $client_referrer): self { $this->container['client_referrer'] = $client_referrer; @@ -497,7 +497,7 @@ public function getUserAgent(): ?string * * @return $this */ - public function setUserAgent(string $user_agent): self + public function setUserAgent(?string $user_agent): self { $this->container['user_agent'] = $user_agent; @@ -519,7 +519,7 @@ public function getBot(): ?BotdDetectionResult * * @return $this */ - public function setBot(BotdDetectionResult $bot): self + public function setBot(?BotdDetectionResult $bot): self { $this->container['bot'] = $bot; @@ -541,7 +541,7 @@ public function getIpInfo(): ?IpInfoResult * * @return $this */ - public function setIpInfo(IpInfoResult $ip_info): self + public function setIpInfo(?IpInfoResult $ip_info): self { $this->container['ip_info'] = $ip_info; @@ -585,7 +585,7 @@ public function getRootApps(): ?RootAppsResult * * @return $this */ - public function setRootApps(RootAppsResult $root_apps): self + public function setRootApps(?RootAppsResult $root_apps): self { $this->container['root_apps'] = $root_apps; @@ -607,7 +607,7 @@ public function getEmulator(): ?EmulatorResult * * @return $this */ - public function setEmulator(EmulatorResult $emulator): self + public function setEmulator(?EmulatorResult $emulator): self { $this->container['emulator'] = $emulator; @@ -629,7 +629,7 @@ public function getClonedApp(): ?ClonedAppResult * * @return $this */ - public function setClonedApp(ClonedAppResult $cloned_app): self + public function setClonedApp(?ClonedAppResult $cloned_app): self { $this->container['cloned_app'] = $cloned_app; @@ -651,7 +651,7 @@ public function getFactoryReset(): ?FactoryResetResult * * @return $this */ - public function setFactoryReset(FactoryResetResult $factory_reset): self + public function setFactoryReset(?FactoryResetResult $factory_reset): self { $this->container['factory_reset'] = $factory_reset; @@ -673,7 +673,7 @@ public function getJailbroken(): ?JailbrokenResult * * @return $this */ - public function setJailbroken(JailbrokenResult $jailbroken): self + public function setJailbroken(?JailbrokenResult $jailbroken): self { $this->container['jailbroken'] = $jailbroken; @@ -695,7 +695,7 @@ public function getFrida(): ?FridaResult * * @return $this */ - public function setFrida(FridaResult $frida): self + public function setFrida(?FridaResult $frida): self { $this->container['frida'] = $frida; @@ -717,7 +717,7 @@ public function getIpBlocklist(): ?IpBlockListResult * * @return $this */ - public function setIpBlocklist(IpBlockListResult $ip_blocklist): self + public function setIpBlocklist(?IpBlockListResult $ip_blocklist): self { $this->container['ip_blocklist'] = $ip_blocklist; @@ -739,7 +739,7 @@ public function getTor(): ?TorResult * * @return $this */ - public function setTor(TorResult $tor): self + public function setTor(?TorResult $tor): self { $this->container['tor'] = $tor; @@ -761,7 +761,7 @@ public function getPrivacySettings(): ?PrivacySettingsResult * * @return $this */ - public function setPrivacySettings(PrivacySettingsResult $privacy_settings): self + public function setPrivacySettings(?PrivacySettingsResult $privacy_settings): self { $this->container['privacy_settings'] = $privacy_settings; @@ -783,7 +783,7 @@ public function getVirtualMachine(): ?VirtualMachineResult * * @return $this */ - public function setVirtualMachine(VirtualMachineResult $virtual_machine): self + public function setVirtualMachine(?VirtualMachineResult $virtual_machine): self { $this->container['virtual_machine'] = $virtual_machine; @@ -805,7 +805,7 @@ public function getVpn(): ?VpnResult * * @return $this */ - public function setVpn(VpnResult $vpn): self + public function setVpn(?VpnResult $vpn): self { $this->container['vpn'] = $vpn; @@ -827,7 +827,7 @@ public function getProxy(): ?ProxyResult * * @return $this */ - public function setProxy(ProxyResult $proxy): self + public function setProxy(?ProxyResult $proxy): self { $this->container['proxy'] = $proxy; @@ -849,7 +849,7 @@ public function getTampering(): ?TamperingResult * * @return $this */ - public function setTampering(TamperingResult $tampering): self + public function setTampering(?TamperingResult $tampering): self { $this->container['tampering'] = $tampering; @@ -871,7 +871,7 @@ public function getRawDeviceAttributes(): ?RawDeviceAttributesResult * * @return $this */ - public function setRawDeviceAttributes(RawDeviceAttributesResult $raw_device_attributes): self + public function setRawDeviceAttributes(?RawDeviceAttributesResult $raw_device_attributes): self { $this->container['raw_device_attributes'] = $raw_device_attributes; @@ -893,7 +893,7 @@ public function getHighActivity(): ?HighActivityResult * * @return $this */ - public function setHighActivity(HighActivityResult $high_activity): self + public function setHighActivity(?HighActivityResult $high_activity): self { $this->container['high_activity'] = $high_activity; @@ -915,7 +915,7 @@ public function getLocationSpoofing(): ?LocationSpoofingResult * * @return $this */ - public function setLocationSpoofing(LocationSpoofingResult $location_spoofing): self + public function setLocationSpoofing(?LocationSpoofingResult $location_spoofing): self { $this->container['location_spoofing'] = $location_spoofing; @@ -937,7 +937,7 @@ public function getSuspectScore(): ?SuspectScoreResult * * @return $this */ - public function setSuspectScore(SuspectScoreResult $suspect_score): self + public function setSuspectScore(?SuspectScoreResult $suspect_score): self { $this->container['suspect_score'] = $suspect_score; @@ -1025,7 +1025,7 @@ public function getIpLocation(): ?DeprecatedIPLocation * * @return $this */ - public function setIpLocation(DeprecatedIPLocation $ip_location): self + public function setIpLocation(?DeprecatedIPLocation $ip_location): self { $this->container['ip_location'] = $ip_location; @@ -1137,7 +1137,7 @@ public function getLinkedId(): ?string * * @return $this */ - public function setLinkedId(string $linked_id): self + public function setLinkedId(?string $linked_id): self { $this->container['linked_id'] = $linked_id; @@ -1159,7 +1159,7 @@ public function getConfidence(): ?Confidence * * @return $this */ - public function setConfidence(Confidence $confidence): self + public function setConfidence(?Confidence $confidence): self { $this->container['confidence'] = $confidence; diff --git a/template/model_generic.mustache b/template/model_generic.mustache index c4dc68cc..321cf0bb 100644 --- a/template/model_generic.mustache +++ b/template/model_generic.mustache @@ -260,7 +260,7 @@ class {{classname}} {{#parentSchema}}extends {{{parent}}} {{/parentSchema}}{{^pa * * @return $this */ - public function {{setter}}({{^isListContainer}}{{^isMapContainer}}{{^isDouble}}{{datatype}}{{/isDouble}}{{/isMapContainer}}{{/isListContainer}}{{#isListContainer}}array{{/isListContainer}}{{#isMapContainer}}array{{/isMapContainer}}{{#isDouble}}float{{/isDouble}} ${{name}}): self + public function {{setter}}({{^required}}?{{/required}}{{^isListContainer}}{{^isMapContainer}}{{^isDouble}}{{datatype}}{{/isDouble}}{{/isMapContainer}}{{/isListContainer}}{{#isListContainer}}array{{/isListContainer}}{{#isMapContainer}}array{{/isMapContainer}}{{#isDouble}}float{{/isDouble}} ${{name}}): self { {{#isEnum}} $allowedValues = $this->{{getter}}AllowableValues();