Skip to content

Commit

Permalink
refactor: use required annotation for model getters
Browse files Browse the repository at this point in the history
  • Loading branch information
Orkuncakilkaya committed Aug 15, 2024
1 parent 29cb26c commit 950a318
Show file tree
Hide file tree
Showing 42 changed files with 113 additions and 113 deletions.
4 changes: 2 additions & 2 deletions src/Model/ASN.php
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ public function valid(): bool
/**
* Gets asn.
*/
public function getAsn(): ?string
public function getAsn(): string
{
return $this->container['asn'];
}
Expand All @@ -235,7 +235,7 @@ public function setAsn(string $asn): self
/**
* Gets network.
*/
public function getNetwork(): ?string
public function getNetwork(): string
{
return $this->container['network'];
}
Expand Down
2 changes: 1 addition & 1 deletion src/Model/BotdDetectionResult.php
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ public function valid(): bool
/**
* Gets result.
*/
public function getResult(): ?string
public function getResult(): string
{
return $this->container['result'];
}
Expand Down
12 changes: 6 additions & 6 deletions src/Model/BotdResult.php
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ public function valid(): bool
/**
* Gets ip.
*/
public function getIp(): ?string
public function getIp(): string
{
return $this->container['ip'];
}
Expand All @@ -273,7 +273,7 @@ public function setIp(string $ip): self
/**
* Gets time.
*/
public function getTime(): ?\DateTime
public function getTime(): \DateTime
{
return $this->container['time'];
}
Expand All @@ -295,7 +295,7 @@ public function setTime(\DateTime $time): self
/**
* Gets url.
*/
public function getUrl(): ?string
public function getUrl(): string
{
return $this->container['url'];
}
Expand All @@ -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'];
}
Expand All @@ -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'];
}
Expand Down Expand Up @@ -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'];
}
Expand Down
14 changes: 7 additions & 7 deletions src/Model/BrowserDetails.php
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ public function valid(): bool
/**
* Gets browser_name.
*/
public function getBrowserName(): ?string
public function getBrowserName(): string
{
return $this->container['browser_name'];
}
Expand All @@ -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'];
}
Expand All @@ -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'];
}
Expand All @@ -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'];
}
Expand All @@ -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'];
}
Expand All @@ -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'];
}
Expand All @@ -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'];
}
Expand Down
2 changes: 1 addition & 1 deletion src/Model/ClonedAppResult.php
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ public function valid(): bool
/**
* Gets result.
*/
public function getResult(): ?bool
public function getResult(): bool
{
return $this->container['result'];
}
Expand Down
2 changes: 1 addition & 1 deletion src/Model/Confidence.php
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ public function valid(): bool
/**
* Gets score.
*/
public function getScore(): ?float
public function getScore(): float
{
return $this->container['score'];
}
Expand Down
2 changes: 1 addition & 1 deletion src/Model/DataCenter.php
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ public function valid(): bool
/**
* Gets result.
*/
public function getResult(): ?bool
public function getResult(): bool
{
return $this->container['result'];
}
Expand Down
2 changes: 1 addition & 1 deletion src/Model/EmulatorResult.php
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ public function valid(): bool
/**
* Gets result.
*/
public function getResult(): ?bool
public function getResult(): bool
{
return $this->container['result'];
}
Expand Down
4 changes: 2 additions & 2 deletions src/Model/ErrorEvent403ResponseError.php
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ public function valid(): bool
/**
* Gets code.
*/
public function getCode(): ?string
public function getCode(): string
{
return $this->container['code'];
}
Expand Down Expand Up @@ -265,7 +265,7 @@ public function setCode(string $code): self
/**
* Gets message.
*/
public function getMessage(): ?string
public function getMessage(): string
{
return $this->container['message'];
}
Expand Down
4 changes: 2 additions & 2 deletions src/Model/ErrorEvent404ResponseError.php
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ public function valid(): bool
/**
* Gets code.
*/
public function getCode(): ?string
public function getCode(): string
{
return $this->container['code'];
}
Expand Down Expand Up @@ -259,7 +259,7 @@ public function setCode(string $code): self
/**
* Gets message.
*/
public function getMessage(): ?string
public function getMessage(): string
{
return $this->container['message'];
}
Expand Down
2 changes: 1 addition & 1 deletion src/Model/ErrorVisits403.php
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ public function valid(): bool
/**
* Gets error.
*/
public function getError(): ?string
public function getError(): string
{
return $this->container['error'];
}
Expand Down
2 changes: 1 addition & 1 deletion src/Model/EventResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ public function valid(): bool
/**
* Gets products.
*/
public function getProducts(): ?ProductsResponse
public function getProducts(): ProductsResponse
{
return $this->container['products'];
}
Expand Down
4 changes: 2 additions & 2 deletions src/Model/FactoryResetResult.php
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ public function valid(): bool
/**
* Gets time.
*/
public function getTime(): ?\DateTime
public function getTime(): \DateTime
{
return $this->container['time'];
}
Expand All @@ -229,7 +229,7 @@ public function setTime(\DateTime $time): self
/**
* Gets timestamp.
*/
public function getTimestamp(): ?int
public function getTimestamp(): int
{
return $this->container['timestamp'];
}
Expand Down
2 changes: 1 addition & 1 deletion src/Model/FridaResult.php
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ public function valid(): bool
/**
* Gets result.
*/
public function getResult(): ?bool
public function getResult(): bool
{
return $this->container['result'];
}
Expand Down
2 changes: 1 addition & 1 deletion src/Model/HighActivityResult.php
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ public function valid(): bool
/**
* Gets result.
*/
public function getResult(): ?bool
public function getResult(): bool
{
return $this->container['result'];
}
Expand Down
4 changes: 2 additions & 2 deletions src/Model/IdentificationError.php
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ public function valid(): bool
/**
* Gets code.
*/
public function getCode(): ?string
public function getCode(): string
{
return $this->container['code'];
}
Expand Down Expand Up @@ -261,7 +261,7 @@ public function setCode(string $code): self
/**
* Gets message.
*/
public function getMessage(): ?string
public function getMessage(): string
{
return $this->container['message'];
}
Expand Down
2 changes: 1 addition & 1 deletion src/Model/IncognitoResult.php
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ public function valid(): bool
/**
* Gets result.
*/
public function getResult(): ?bool
public function getResult(): bool
{
return $this->container['result'];
}
Expand Down
4 changes: 2 additions & 2 deletions src/Model/IpBlockListResult.php
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ public function valid(): bool
/**
* Gets result.
*/
public function getResult(): ?bool
public function getResult(): bool
{
return $this->container['result'];
}
Expand All @@ -229,7 +229,7 @@ public function setResult(bool $result): self
/**
* Gets details.
*/
public function getDetails(): ?IpBlockListResultDetails
public function getDetails(): IpBlockListResultDetails
{
return $this->container['details'];
}
Expand Down
4 changes: 2 additions & 2 deletions src/Model/IpBlockListResultDetails.php
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ public function valid(): bool
/**
* Gets email_spam.
*/
public function getEmailSpam(): ?bool
public function getEmailSpam(): bool
{
return $this->container['email_spam'];
}
Expand All @@ -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'];
}
Expand Down
4 changes: 2 additions & 2 deletions src/Model/IpInfoResultV4.php
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ public function valid(): bool
/**
* Gets address.
*/
public function getAddress(): ?string
public function getAddress(): string
{
return $this->container['address'];
}
Expand All @@ -241,7 +241,7 @@ public function setAddress(string $address): self
/**
* Gets geolocation.
*/
public function getGeolocation(): ?IPLocation
public function getGeolocation(): IPLocation
{
return $this->container['geolocation'];
}
Expand Down
4 changes: 2 additions & 2 deletions src/Model/IpInfoResultV6.php
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ public function valid(): bool
/**
* Gets address.
*/
public function getAddress(): ?string
public function getAddress(): string
{
return $this->container['address'];
}
Expand All @@ -241,7 +241,7 @@ public function setAddress(string $address): self
/**
* Gets geolocation.
*/
public function getGeolocation(): ?IPLocation
public function getGeolocation(): IPLocation
{
return $this->container['geolocation'];
}
Expand Down
2 changes: 1 addition & 1 deletion src/Model/JailbrokenResult.php
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ public function valid(): bool
/**
* Gets result.
*/
public function getResult(): ?bool
public function getResult(): bool
{
return $this->container['result'];
}
Expand Down
4 changes: 2 additions & 2 deletions src/Model/Location.php
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ public function valid(): bool
/**
* Gets code.
*/
public function getCode(): ?string
public function getCode(): string
{
return $this->container['code'];
}
Expand All @@ -229,7 +229,7 @@ public function setCode(string $code): self
/**
* Gets name.
*/
public function getName(): ?string
public function getName(): string
{
return $this->container['name'];
}
Expand Down
Loading

0 comments on commit 950a318

Please sign in to comment.