diff --git a/src/Model/ASN.php b/src/Model/ASN.php index 530505cb..216f7923 100644 --- a/src/Model/ASN.php +++ b/src/Model/ASN.php @@ -213,7 +213,7 @@ public function valid(): bool /** * Gets asn. */ - public function getAsn(): ?string + public function getAsn(): string { return $this->container['asn']; } @@ -235,7 +235,7 @@ public function setAsn(string $asn): self /** * Gets network. */ - public function getNetwork(): ?string + public function getNetwork(): string { return $this->container['network']; } diff --git a/src/Model/BotdDetectionResult.php b/src/Model/BotdDetectionResult.php index f6bea206..bc2c4524 100644 --- a/src/Model/BotdDetectionResult.php +++ b/src/Model/BotdDetectionResult.php @@ -230,7 +230,7 @@ public function valid(): bool /** * Gets result. */ - public function getResult(): ?string + public function getResult(): string { return $this->container['result']; } diff --git a/src/Model/BotdResult.php b/src/Model/BotdResult.php index f39e516f..a5d0ccf6 100644 --- a/src/Model/BotdResult.php +++ b/src/Model/BotdResult.php @@ -251,7 +251,7 @@ public function valid(): bool /** * Gets ip. */ - public function getIp(): ?string + public function getIp(): string { return $this->container['ip']; } @@ -273,7 +273,7 @@ public function setIp(string $ip): self /** * Gets time. */ - public function getTime(): ?\DateTime + public function getTime(): \DateTime { return $this->container['time']; } @@ -295,7 +295,7 @@ public function setTime(\DateTime $time): self /** * Gets url. */ - public function getUrl(): ?string + public function getUrl(): string { return $this->container['url']; } @@ -317,7 +317,7 @@ public function setUrl(string $url): self /** * Gets user_agent. */ - public function getUserAgent(): ?string + public function getUserAgent(): string { return $this->container['user_agent']; } @@ -339,7 +339,7 @@ public function setUserAgent(string $user_agent): self /** * Gets request_id. */ - public function getRequestId(): ?string + public function getRequestId(): string { return $this->container['request_id']; } @@ -383,7 +383,7 @@ public function setLinkedId(string $linked_id): self /** * Gets bot. */ - public function getBot(): ?BotdDetectionResult + public function getBot(): BotdDetectionResult { return $this->container['bot']; } diff --git a/src/Model/BrowserDetails.php b/src/Model/BrowserDetails.php index bfd50fb0..e5190554 100644 --- a/src/Model/BrowserDetails.php +++ b/src/Model/BrowserDetails.php @@ -258,7 +258,7 @@ public function valid(): bool /** * Gets browser_name. */ - public function getBrowserName(): ?string + public function getBrowserName(): string { return $this->container['browser_name']; } @@ -280,7 +280,7 @@ public function setBrowserName(string $browser_name): self /** * Gets browser_major_version. */ - public function getBrowserMajorVersion(): ?string + public function getBrowserMajorVersion(): string { return $this->container['browser_major_version']; } @@ -302,7 +302,7 @@ public function setBrowserMajorVersion(string $browser_major_version): self /** * Gets browser_full_version. */ - public function getBrowserFullVersion(): ?string + public function getBrowserFullVersion(): string { return $this->container['browser_full_version']; } @@ -324,7 +324,7 @@ public function setBrowserFullVersion(string $browser_full_version): self /** * Gets os. */ - public function getOs(): ?string + public function getOs(): string { return $this->container['os']; } @@ -346,7 +346,7 @@ public function setOs(string $os): self /** * Gets os_version. */ - public function getOsVersion(): ?string + public function getOsVersion(): string { return $this->container['os_version']; } @@ -368,7 +368,7 @@ public function setOsVersion(string $os_version): self /** * Gets device. */ - public function getDevice(): ?string + public function getDevice(): string { return $this->container['device']; } @@ -390,7 +390,7 @@ public function setDevice(string $device): self /** * Gets user_agent. */ - public function getUserAgent(): ?string + public function getUserAgent(): string { return $this->container['user_agent']; } diff --git a/src/Model/ClonedAppResult.php b/src/Model/ClonedAppResult.php index e09b176a..61fd7c2d 100644 --- a/src/Model/ClonedAppResult.php +++ b/src/Model/ClonedAppResult.php @@ -198,7 +198,7 @@ public function valid(): bool /** * Gets result. */ - public function getResult(): ?bool + public function getResult(): bool { return $this->container['result']; } diff --git a/src/Model/Confidence.php b/src/Model/Confidence.php index a66a2d90..ac489b0d 100644 --- a/src/Model/Confidence.php +++ b/src/Model/Confidence.php @@ -198,7 +198,7 @@ public function valid(): bool /** * Gets score. */ - public function getScore(): ?float + public function getScore(): float { return $this->container['score']; } diff --git a/src/Model/DataCenter.php b/src/Model/DataCenter.php index b8565a33..d3f65818 100644 --- a/src/Model/DataCenter.php +++ b/src/Model/DataCenter.php @@ -204,7 +204,7 @@ public function valid(): bool /** * Gets result. */ - public function getResult(): ?bool + public function getResult(): bool { return $this->container['result']; } diff --git a/src/Model/EmulatorResult.php b/src/Model/EmulatorResult.php index eb39b047..0a4398fd 100644 --- a/src/Model/EmulatorResult.php +++ b/src/Model/EmulatorResult.php @@ -198,7 +198,7 @@ public function valid(): bool /** * Gets result. */ - public function getResult(): ?bool + public function getResult(): bool { return $this->container['result']; } diff --git a/src/Model/ErrorEvent403ResponseError.php b/src/Model/ErrorEvent403ResponseError.php index e714bd2c..702c754c 100644 --- a/src/Model/ErrorEvent403ResponseError.php +++ b/src/Model/ErrorEvent403ResponseError.php @@ -234,7 +234,7 @@ public function valid(): bool /** * Gets code. */ - public function getCode(): ?string + public function getCode(): string { return $this->container['code']; } @@ -265,7 +265,7 @@ public function setCode(string $code): self /** * Gets message. */ - public function getMessage(): ?string + public function getMessage(): string { return $this->container['message']; } diff --git a/src/Model/ErrorEvent404ResponseError.php b/src/Model/ErrorEvent404ResponseError.php index 1993400b..607b1924 100644 --- a/src/Model/ErrorEvent404ResponseError.php +++ b/src/Model/ErrorEvent404ResponseError.php @@ -228,7 +228,7 @@ public function valid(): bool /** * Gets code. */ - public function getCode(): ?string + public function getCode(): string { return $this->container['code']; } @@ -259,7 +259,7 @@ public function setCode(string $code): self /** * Gets message. */ - public function getMessage(): ?string + public function getMessage(): string { return $this->container['message']; } diff --git a/src/Model/ErrorVisits403.php b/src/Model/ErrorVisits403.php index 97f37869..297998f3 100644 --- a/src/Model/ErrorVisits403.php +++ b/src/Model/ErrorVisits403.php @@ -198,7 +198,7 @@ public function valid(): bool /** * Gets error. */ - public function getError(): ?string + public function getError(): string { return $this->container['error']; } diff --git a/src/Model/EventResponse.php b/src/Model/EventResponse.php index 6ecd6eec..cceb4a49 100644 --- a/src/Model/EventResponse.php +++ b/src/Model/EventResponse.php @@ -206,7 +206,7 @@ public function valid(): bool /** * Gets products. */ - public function getProducts(): ?ProductsResponse + public function getProducts(): ProductsResponse { return $this->container['products']; } diff --git a/src/Model/FactoryResetResult.php b/src/Model/FactoryResetResult.php index f06871d0..fbf1834d 100644 --- a/src/Model/FactoryResetResult.php +++ b/src/Model/FactoryResetResult.php @@ -207,7 +207,7 @@ public function valid(): bool /** * Gets time. */ - public function getTime(): ?\DateTime + public function getTime(): \DateTime { return $this->container['time']; } @@ -229,7 +229,7 @@ public function setTime(\DateTime $time): self /** * Gets timestamp. */ - public function getTimestamp(): ?int + public function getTimestamp(): int { return $this->container['timestamp']; } diff --git a/src/Model/FridaResult.php b/src/Model/FridaResult.php index 29fdb492..ad511bad 100644 --- a/src/Model/FridaResult.php +++ b/src/Model/FridaResult.php @@ -198,7 +198,7 @@ public function valid(): bool /** * Gets result. */ - public function getResult(): ?bool + public function getResult(): bool { return $this->container['result']; } diff --git a/src/Model/HighActivityResult.php b/src/Model/HighActivityResult.php index e381e1ce..503dc337 100644 --- a/src/Model/HighActivityResult.php +++ b/src/Model/HighActivityResult.php @@ -204,7 +204,7 @@ public function valid(): bool /** * Gets result. */ - public function getResult(): ?bool + public function getResult(): bool { return $this->container['result']; } diff --git a/src/Model/IdentificationError.php b/src/Model/IdentificationError.php index 47d5157e..c8890cc4 100644 --- a/src/Model/IdentificationError.php +++ b/src/Model/IdentificationError.php @@ -230,7 +230,7 @@ public function valid(): bool /** * Gets code. */ - public function getCode(): ?string + public function getCode(): string { return $this->container['code']; } @@ -261,7 +261,7 @@ public function setCode(string $code): self /** * Gets message. */ - public function getMessage(): ?string + public function getMessage(): string { return $this->container['message']; } diff --git a/src/Model/IncognitoResult.php b/src/Model/IncognitoResult.php index 27db01f7..6299cc93 100644 --- a/src/Model/IncognitoResult.php +++ b/src/Model/IncognitoResult.php @@ -198,7 +198,7 @@ public function valid(): bool /** * Gets result. */ - public function getResult(): ?bool + public function getResult(): bool { return $this->container['result']; } diff --git a/src/Model/IpBlockListResult.php b/src/Model/IpBlockListResult.php index 8c5435e2..c6131829 100644 --- a/src/Model/IpBlockListResult.php +++ b/src/Model/IpBlockListResult.php @@ -207,7 +207,7 @@ public function valid(): bool /** * Gets result. */ - public function getResult(): ?bool + public function getResult(): bool { return $this->container['result']; } @@ -229,7 +229,7 @@ public function setResult(bool $result): self /** * Gets details. */ - public function getDetails(): ?IpBlockListResultDetails + public function getDetails(): IpBlockListResultDetails { return $this->container['details']; } diff --git a/src/Model/IpBlockListResultDetails.php b/src/Model/IpBlockListResultDetails.php index cc3823ae..0695fbc1 100644 --- a/src/Model/IpBlockListResultDetails.php +++ b/src/Model/IpBlockListResultDetails.php @@ -207,7 +207,7 @@ public function valid(): bool /** * Gets email_spam. */ - public function getEmailSpam(): ?bool + public function getEmailSpam(): bool { return $this->container['email_spam']; } @@ -229,7 +229,7 @@ public function setEmailSpam(bool $email_spam): self /** * Gets attack_source. */ - public function getAttackSource(): ?bool + public function getAttackSource(): bool { return $this->container['attack_source']; } diff --git a/src/Model/IpInfoResultV4.php b/src/Model/IpInfoResultV4.php index 53e0e16b..e78f3f23 100644 --- a/src/Model/IpInfoResultV4.php +++ b/src/Model/IpInfoResultV4.php @@ -219,7 +219,7 @@ public function valid(): bool /** * Gets address. */ - public function getAddress(): ?string + public function getAddress(): string { return $this->container['address']; } @@ -241,7 +241,7 @@ public function setAddress(string $address): self /** * Gets geolocation. */ - public function getGeolocation(): ?IPLocation + public function getGeolocation(): IPLocation { return $this->container['geolocation']; } diff --git a/src/Model/IpInfoResultV6.php b/src/Model/IpInfoResultV6.php index f28f7929..e19214f2 100644 --- a/src/Model/IpInfoResultV6.php +++ b/src/Model/IpInfoResultV6.php @@ -219,7 +219,7 @@ public function valid(): bool /** * Gets address. */ - public function getAddress(): ?string + public function getAddress(): string { return $this->container['address']; } @@ -241,7 +241,7 @@ public function setAddress(string $address): self /** * Gets geolocation. */ - public function getGeolocation(): ?IPLocation + public function getGeolocation(): IPLocation { return $this->container['geolocation']; } diff --git a/src/Model/JailbrokenResult.php b/src/Model/JailbrokenResult.php index 6e7190d7..fa94ca4d 100644 --- a/src/Model/JailbrokenResult.php +++ b/src/Model/JailbrokenResult.php @@ -198,7 +198,7 @@ public function valid(): bool /** * Gets result. */ - public function getResult(): ?bool + public function getResult(): bool { return $this->container['result']; } diff --git a/src/Model/Location.php b/src/Model/Location.php index ffdd5597..10af00e7 100644 --- a/src/Model/Location.php +++ b/src/Model/Location.php @@ -207,7 +207,7 @@ public function valid(): bool /** * Gets code. */ - public function getCode(): ?string + public function getCode(): string { return $this->container['code']; } @@ -229,7 +229,7 @@ public function setCode(string $code): self /** * Gets name. */ - public function getName(): ?string + public function getName(): string { return $this->container['name']; } diff --git a/src/Model/LocationSpoofingResult.php b/src/Model/LocationSpoofingResult.php index 5da5bf66..fb7e697c 100644 --- a/src/Model/LocationSpoofingResult.php +++ b/src/Model/LocationSpoofingResult.php @@ -198,7 +198,7 @@ public function valid(): bool /** * Gets result. */ - public function getResult(): ?bool + public function getResult(): bool { return $this->container['result']; } diff --git a/src/Model/ManyRequestsResponse.php b/src/Model/ManyRequestsResponse.php index 9fe7fc0d..f2c782c5 100644 --- a/src/Model/ManyRequestsResponse.php +++ b/src/Model/ManyRequestsResponse.php @@ -198,7 +198,7 @@ public function valid(): bool /** * Gets error. */ - public function getError(): ?string + public function getError(): string { return $this->container['error']; } diff --git a/src/Model/PrivacySettingsResult.php b/src/Model/PrivacySettingsResult.php index db425e5e..28bcb9a6 100644 --- a/src/Model/PrivacySettingsResult.php +++ b/src/Model/PrivacySettingsResult.php @@ -198,7 +198,7 @@ public function valid(): bool /** * Gets result. */ - public function getResult(): ?bool + public function getResult(): bool { return $this->container['result']; } diff --git a/src/Model/ProductError.php b/src/Model/ProductError.php index 3dfc1c36..5a0879e9 100644 --- a/src/Model/ProductError.php +++ b/src/Model/ProductError.php @@ -230,7 +230,7 @@ public function valid(): bool /** * Gets code. */ - public function getCode(): ?string + public function getCode(): string { return $this->container['code']; } @@ -261,7 +261,7 @@ public function setCode(string $code): self /** * Gets message. */ - public function getMessage(): ?string + public function getMessage(): string { return $this->container['message']; } diff --git a/src/Model/ProductsResponseIdentificationData.php b/src/Model/ProductsResponseIdentificationData.php index 9fa2101d..07762091 100644 --- a/src/Model/ProductsResponseIdentificationData.php +++ b/src/Model/ProductsResponseIdentificationData.php @@ -315,7 +315,7 @@ public function valid(): bool /** * Gets request_id. */ - public function getRequestId(): ?string + public function getRequestId(): string { return $this->container['request_id']; } @@ -337,7 +337,7 @@ public function setRequestId(string $request_id): self /** * Gets browser_details. */ - public function getBrowserDetails(): ?BrowserDetails + public function getBrowserDetails(): BrowserDetails { return $this->container['browser_details']; } @@ -359,7 +359,7 @@ public function setBrowserDetails(BrowserDetails $browser_details): self /** * Gets incognito. */ - public function getIncognito(): ?bool + public function getIncognito(): bool { return $this->container['incognito']; } @@ -381,7 +381,7 @@ public function setIncognito(bool $incognito): self /** * Gets ip. */ - public function getIp(): ?string + public function getIp(): string { return $this->container['ip']; } @@ -425,7 +425,7 @@ public function setIpLocation(DeprecatedIPLocation $ip_location): self /** * Gets timestamp. */ - public function getTimestamp(): ?int + public function getTimestamp(): int { return $this->container['timestamp']; } @@ -447,7 +447,7 @@ public function setTimestamp(int $timestamp): self /** * Gets time. */ - public function getTime(): ?\DateTime + public function getTime(): \DateTime { return $this->container['time']; } @@ -469,7 +469,7 @@ public function setTime(\DateTime $time): self /** * Gets url. */ - public function getUrl(): ?string + public function getUrl(): string { return $this->container['url']; } @@ -493,7 +493,7 @@ public function setUrl(string $url): self * * @return map[string,object] */ - public function getTag(): ?array + public function getTag(): array { return $this->container['tag']; } @@ -559,7 +559,7 @@ public function setConfidence(Confidence $confidence): self /** * Gets visitor_found. */ - public function getVisitorFound(): ?bool + public function getVisitorFound(): bool { return $this->container['visitor_found']; } @@ -581,7 +581,7 @@ public function setVisitorFound(bool $visitor_found): self /** * Gets first_seen_at. */ - public function getFirstSeenAt(): ?SeenAt + public function getFirstSeenAt(): SeenAt { return $this->container['first_seen_at']; } @@ -603,7 +603,7 @@ public function setFirstSeenAt(SeenAt $first_seen_at): self /** * Gets last_seen_at. */ - public function getLastSeenAt(): ?SeenAt + public function getLastSeenAt(): SeenAt { return $this->container['last_seen_at']; } @@ -625,7 +625,7 @@ public function setLastSeenAt(SeenAt $last_seen_at): self /** * Gets visitor_id. */ - public function getVisitorId(): ?string + public function getVisitorId(): string { return $this->container['visitor_id']; } diff --git a/src/Model/ProxyResult.php b/src/Model/ProxyResult.php index 9d6c88b1..0ba7fc50 100644 --- a/src/Model/ProxyResult.php +++ b/src/Model/ProxyResult.php @@ -198,7 +198,7 @@ public function valid(): bool /** * Gets result. */ - public function getResult(): ?bool + public function getResult(): bool { return $this->container['result']; } diff --git a/src/Model/Response.php b/src/Model/Response.php index 46f63c1d..b054c409 100644 --- a/src/Model/Response.php +++ b/src/Model/Response.php @@ -221,7 +221,7 @@ public function valid(): bool /** * Gets visitor_id. */ - public function getVisitorId(): ?string + public function getVisitorId(): string { return $this->container['visitor_id']; } @@ -245,7 +245,7 @@ public function setVisitorId(string $visitor_id): self * * @return \Fingerprint\ServerAPI\Model\ResponseVisits[] */ - public function getVisits(): ?array + public function getVisits(): array { return $this->container['visits']; } diff --git a/src/Model/ResponseVisits.php b/src/Model/ResponseVisits.php index b1871685..63c7135e 100644 --- a/src/Model/ResponseVisits.php +++ b/src/Model/ResponseVisits.php @@ -306,7 +306,7 @@ public function valid(): bool /** * Gets request_id. */ - public function getRequestId(): ?string + public function getRequestId(): string { return $this->container['request_id']; } @@ -328,7 +328,7 @@ public function setRequestId(string $request_id): self /** * Gets browser_details. */ - public function getBrowserDetails(): ?BrowserDetails + public function getBrowserDetails(): BrowserDetails { return $this->container['browser_details']; } @@ -350,7 +350,7 @@ public function setBrowserDetails(BrowserDetails $browser_details): self /** * Gets incognito. */ - public function getIncognito(): ?bool + public function getIncognito(): bool { return $this->container['incognito']; } @@ -372,7 +372,7 @@ public function setIncognito(bool $incognito): self /** * Gets ip. */ - public function getIp(): ?string + public function getIp(): string { return $this->container['ip']; } @@ -416,7 +416,7 @@ public function setIpLocation(DeprecatedIPLocation $ip_location): self /** * Gets timestamp. */ - public function getTimestamp(): ?int + public function getTimestamp(): int { return $this->container['timestamp']; } @@ -438,7 +438,7 @@ public function setTimestamp(int $timestamp): self /** * Gets time. */ - public function getTime(): ?\DateTime + public function getTime(): \DateTime { return $this->container['time']; } @@ -460,7 +460,7 @@ public function setTime(\DateTime $time): self /** * Gets url. */ - public function getUrl(): ?string + public function getUrl(): string { return $this->container['url']; } @@ -484,7 +484,7 @@ public function setUrl(string $url): self * * @return map[string,object] */ - public function getTag(): ?array + public function getTag(): array { return $this->container['tag']; } @@ -550,7 +550,7 @@ public function setConfidence(Confidence $confidence): self /** * Gets visitor_found. */ - public function getVisitorFound(): ?bool + public function getVisitorFound(): bool { return $this->container['visitor_found']; } @@ -572,7 +572,7 @@ public function setVisitorFound(bool $visitor_found): self /** * Gets first_seen_at. */ - public function getFirstSeenAt(): ?SeenAt + public function getFirstSeenAt(): SeenAt { return $this->container['first_seen_at']; } @@ -594,7 +594,7 @@ public function setFirstSeenAt(SeenAt $first_seen_at): self /** * Gets last_seen_at. */ - public function getLastSeenAt(): ?SeenAt + public function getLastSeenAt(): SeenAt { return $this->container['last_seen_at']; } diff --git a/src/Model/RootAppsResult.php b/src/Model/RootAppsResult.php index 0c0fe279..6c1c82cf 100644 --- a/src/Model/RootAppsResult.php +++ b/src/Model/RootAppsResult.php @@ -198,7 +198,7 @@ public function valid(): bool /** * Gets result. */ - public function getResult(): ?bool + public function getResult(): bool { return $this->container['result']; } diff --git a/src/Model/SeenAt.php b/src/Model/SeenAt.php index 0d5fe032..29de802d 100644 --- a/src/Model/SeenAt.php +++ b/src/Model/SeenAt.php @@ -207,7 +207,7 @@ public function valid(): bool /** * Gets global. */ - public function getGlobal(): ?\DateTime + public function getGlobal(): \DateTime { return $this->container['global']; } @@ -229,7 +229,7 @@ public function setGlobal(\DateTime $global): self /** * Gets subscription. */ - public function getSubscription(): ?\DateTime + public function getSubscription(): \DateTime { return $this->container['subscription']; } diff --git a/src/Model/SuspectScoreResult.php b/src/Model/SuspectScoreResult.php index dfcc6b63..3225bda1 100644 --- a/src/Model/SuspectScoreResult.php +++ b/src/Model/SuspectScoreResult.php @@ -198,7 +198,7 @@ public function valid(): bool /** * Gets result. */ - public function getResult(): ?int + public function getResult(): int { return $this->container['result']; } diff --git a/src/Model/TamperingResult.php b/src/Model/TamperingResult.php index a6504cf5..e642bcd4 100644 --- a/src/Model/TamperingResult.php +++ b/src/Model/TamperingResult.php @@ -207,7 +207,7 @@ public function valid(): bool /** * Gets result. */ - public function getResult(): ?bool + public function getResult(): bool { return $this->container['result']; } @@ -229,7 +229,7 @@ public function setResult(bool $result): self /** * Gets anomaly_score. */ - public function getAnomalyScore(): ?float + public function getAnomalyScore(): float { return $this->container['anomaly_score']; } diff --git a/src/Model/TorResult.php b/src/Model/TorResult.php index 55bad9d6..c09aeaaf 100644 --- a/src/Model/TorResult.php +++ b/src/Model/TorResult.php @@ -198,7 +198,7 @@ public function valid(): bool /** * Gets result. */ - public function getResult(): ?bool + public function getResult(): bool { return $this->container['result']; } diff --git a/src/Model/VirtualMachineResult.php b/src/Model/VirtualMachineResult.php index b4ab2899..644f9144 100644 --- a/src/Model/VirtualMachineResult.php +++ b/src/Model/VirtualMachineResult.php @@ -198,7 +198,7 @@ public function valid(): bool /** * Gets result. */ - public function getResult(): ?bool + public function getResult(): bool { return $this->container['result']; } diff --git a/src/Model/Visit.php b/src/Model/Visit.php index 1705250d..72c306a6 100644 --- a/src/Model/Visit.php +++ b/src/Model/Visit.php @@ -306,7 +306,7 @@ public function valid(): bool /** * Gets request_id. */ - public function getRequestId(): ?string + public function getRequestId(): string { return $this->container['request_id']; } @@ -328,7 +328,7 @@ public function setRequestId(string $request_id): self /** * Gets browser_details. */ - public function getBrowserDetails(): ?BrowserDetails + public function getBrowserDetails(): BrowserDetails { return $this->container['browser_details']; } @@ -350,7 +350,7 @@ public function setBrowserDetails(BrowserDetails $browser_details): self /** * Gets incognito. */ - public function getIncognito(): ?bool + public function getIncognito(): bool { return $this->container['incognito']; } @@ -372,7 +372,7 @@ public function setIncognito(bool $incognito): self /** * Gets ip. */ - public function getIp(): ?string + public function getIp(): string { return $this->container['ip']; } @@ -416,7 +416,7 @@ public function setIpLocation(DeprecatedIPLocation $ip_location): self /** * Gets timestamp. */ - public function getTimestamp(): ?int + public function getTimestamp(): int { return $this->container['timestamp']; } @@ -438,7 +438,7 @@ public function setTimestamp(int $timestamp): self /** * Gets time. */ - public function getTime(): ?\DateTime + public function getTime(): \DateTime { return $this->container['time']; } @@ -460,7 +460,7 @@ public function setTime(\DateTime $time): self /** * Gets url. */ - public function getUrl(): ?string + public function getUrl(): string { return $this->container['url']; } @@ -484,7 +484,7 @@ public function setUrl(string $url): self * * @return map[string,object] */ - public function getTag(): ?array + public function getTag(): array { return $this->container['tag']; } @@ -550,7 +550,7 @@ public function setConfidence(Confidence $confidence): self /** * Gets visitor_found. */ - public function getVisitorFound(): ?bool + public function getVisitorFound(): bool { return $this->container['visitor_found']; } @@ -572,7 +572,7 @@ public function setVisitorFound(bool $visitor_found): self /** * Gets first_seen_at. */ - public function getFirstSeenAt(): ?SeenAt + public function getFirstSeenAt(): SeenAt { return $this->container['first_seen_at']; } @@ -594,7 +594,7 @@ public function setFirstSeenAt(SeenAt $first_seen_at): self /** * Gets last_seen_at. */ - public function getLastSeenAt(): ?SeenAt + public function getLastSeenAt(): SeenAt { return $this->container['last_seen_at']; } diff --git a/src/Model/VpnResult.php b/src/Model/VpnResult.php index f809b168..e320c874 100644 --- a/src/Model/VpnResult.php +++ b/src/Model/VpnResult.php @@ -222,7 +222,7 @@ public function valid(): bool /** * Gets result. */ - public function getResult(): ?bool + public function getResult(): bool { return $this->container['result']; } @@ -244,7 +244,7 @@ public function setResult(bool $result): self /** * Gets origin_timezone. */ - public function getOriginTimezone(): ?string + public function getOriginTimezone(): string { return $this->container['origin_timezone']; } @@ -288,7 +288,7 @@ public function setOriginCountry(string $origin_country): self /** * Gets methods. */ - public function getMethods(): ?VpnResultMethods + public function getMethods(): VpnResultMethods { return $this->container['methods']; } diff --git a/src/Model/VpnResultMethods.php b/src/Model/VpnResultMethods.php index 2426ecae..3c4f1f36 100644 --- a/src/Model/VpnResultMethods.php +++ b/src/Model/VpnResultMethods.php @@ -216,7 +216,7 @@ public function valid(): bool /** * Gets timezone_mismatch. */ - public function getTimezoneMismatch(): ?bool + public function getTimezoneMismatch(): bool { return $this->container['timezone_mismatch']; } @@ -238,7 +238,7 @@ public function setTimezoneMismatch(bool $timezone_mismatch): self /** * Gets public_vpn. */ - public function getPublicVpn(): ?bool + public function getPublicVpn(): bool { return $this->container['public_vpn']; } @@ -260,7 +260,7 @@ public function setPublicVpn(bool $public_vpn): self /** * Gets auxiliary_mobile. */ - public function getAuxiliaryMobile(): ?bool + public function getAuxiliaryMobile(): bool { return $this->container['auxiliary_mobile']; } diff --git a/src/Model/WebhookVisit.php b/src/Model/WebhookVisit.php index 4ef9337a..fe15564a 100644 --- a/src/Model/WebhookVisit.php +++ b/src/Model/WebhookVisit.php @@ -441,7 +441,7 @@ public function valid(): bool /** * Gets visitor_id. */ - public function getVisitorId(): ?string + public function getVisitorId(): string { return $this->container['visitor_id']; } @@ -551,7 +551,7 @@ public function setIpInfo(IpInfoResult $ip_info): self /** * Gets incognito. */ - public function getIncognito(): ?bool + public function getIncognito(): bool { return $this->container['incognito']; } @@ -947,7 +947,7 @@ public function setSuspectScore(SuspectScoreResult $suspect_score): self /** * Gets request_id. */ - public function getRequestId(): ?string + public function getRequestId(): string { return $this->container['request_id']; } @@ -969,7 +969,7 @@ public function setRequestId(string $request_id): self /** * Gets browser_details. */ - public function getBrowserDetails(): ?BrowserDetails + public function getBrowserDetails(): BrowserDetails { return $this->container['browser_details']; } @@ -991,7 +991,7 @@ public function setBrowserDetails(BrowserDetails $browser_details): self /** * Gets ip. */ - public function getIp(): ?string + public function getIp(): string { return $this->container['ip']; } @@ -1035,7 +1035,7 @@ public function setIpLocation(DeprecatedIPLocation $ip_location): self /** * Gets timestamp. */ - public function getTimestamp(): ?int + public function getTimestamp(): int { return $this->container['timestamp']; } @@ -1057,7 +1057,7 @@ public function setTimestamp(int $timestamp): self /** * Gets time. */ - public function getTime(): ?\DateTime + public function getTime(): \DateTime { return $this->container['time']; } @@ -1079,7 +1079,7 @@ public function setTime(\DateTime $time): self /** * Gets url. */ - public function getUrl(): ?string + public function getUrl(): string { return $this->container['url']; } @@ -1103,7 +1103,7 @@ public function setUrl(string $url): self * * @return map[string,object] */ - public function getTag(): ?array + public function getTag(): array { return $this->container['tag']; } @@ -1169,7 +1169,7 @@ public function setConfidence(Confidence $confidence): self /** * Gets visitor_found. */ - public function getVisitorFound(): ?bool + public function getVisitorFound(): bool { return $this->container['visitor_found']; } @@ -1191,7 +1191,7 @@ public function setVisitorFound(bool $visitor_found): self /** * Gets first_seen_at. */ - public function getFirstSeenAt(): ?SeenAt + public function getFirstSeenAt(): SeenAt { return $this->container['first_seen_at']; } @@ -1213,7 +1213,7 @@ public function setFirstSeenAt(SeenAt $first_seen_at): self /** * Gets last_seen_at. */ - public function getLastSeenAt(): ?SeenAt + public function getLastSeenAt(): SeenAt { return $this->container['last_seen_at']; } diff --git a/template/model_generic.mustache b/template/model_generic.mustache index c16a71fd..c4dc68cc 100644 --- a/template/model_generic.mustache +++ b/template/model_generic.mustache @@ -248,7 +248,7 @@ class {{classname}} {{#parentSchema}}extends {{{parent}}} {{/parentSchema}}{{^pa * Gets {{name}} * @return {{datatype}} */ - public function {{getter}}(): {{^isListContainer}}{{^isMapContainer}}{{^isDouble}}{{datatype}}{{/isDouble}}{{/isMapContainer}}{{/isListContainer}}{{#isListContainer}}array{{/isListContainer}}{{#isMapContainer}}array{{/isMapContainer}}{{#isDouble}}float{{/isDouble}}|null + public function {{getter}}(): {{^required}}?{{/required}}{{^isListContainer}}{{^isMapContainer}}{{^isDouble}}{{datatype}}{{/isDouble}}{{/isMapContainer}}{{/isListContainer}}{{#isListContainer}}array{{/isListContainer}}{{#isMapContainer}}array{{/isMapContainer}}{{#isDouble}}float{{/isDouble}} { return $this->container['{{name}}']; }