Skip to content

Commit

Permalink
fix: some API properties are nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
bencromwell committed Jan 25, 2024
1 parent d2a5596 commit 8b16a08
Show file tree
Hide file tree
Showing 880 changed files with 43,522 additions and 2,714 deletions.
6 changes: 3 additions & 3 deletions src/Model/A.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,16 @@ public function isInitialized($property): bool
return array_key_exists($property, $this->initialized);
}
/**
* @var string
* @var string|null
*/
protected $ip;

public function getIp(): string
public function getIp(): ?string
{
return $this->ip;
}

public function setIp(string $ip): self
public function setIp(?string $ip): self
{
$this->initialized['ip'] = true;
$this->ip = $ip;
Expand Down
6 changes: 3 additions & 3 deletions src/Model/AAAA.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,16 @@ public function isInitialized($property): bool
return array_key_exists($property, $this->initialized);
}
/**
* @var string
* @var string|null
*/
protected $ip;

public function getIp(): string
public function getIp(): ?string
{
return $this->ip;
}

public function setIp(string $ip): self
public function setIp(?string $ip): self
{
$this->initialized['ip'] = true;
$this->ip = $ip;
Expand Down
48 changes: 24 additions & 24 deletions src/Model/Certificate.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,37 +46,37 @@ public function isInitialized($property): bool
*/
protected $createdAt;
/**
* @var int
* @var int|null
*/
protected $expiresAt;
/**
* @var int
* @var int|null
*/
protected $lastIssuedAt;
/**
* @var string
* @var string|null
*/
protected $issueError;
/**
* @var string
* @var string|null
*/
protected $authorizationMethod;
/**
* This is the URL that can be used to access this certificate's details. through the certificate API (a different API to this one). If null, this means that it is no longer available. If that is the case, you can get a new URL by resetting the API token for this certificate.
*
* @var string
* @var string|null
*/
protected $certificateApiUrl;
/**
* @var string
* @var string|null
*/
protected $certificate;
/**
* @var string
* @var string|null
*/
protected $chain;
/**
* @var string
* @var string|null
*/
protected $privateKey;

Expand Down Expand Up @@ -164,51 +164,51 @@ public function setCreatedAt(int $createdAt): self
return $this;
}

public function getExpiresAt(): int
public function getExpiresAt(): ?int
{
return $this->expiresAt;
}

public function setExpiresAt(int $expiresAt): self
public function setExpiresAt(?int $expiresAt): self
{
$this->initialized['expiresAt'] = true;
$this->expiresAt = $expiresAt;

return $this;
}

public function getLastIssuedAt(): int
public function getLastIssuedAt(): ?int
{
return $this->lastIssuedAt;
}

public function setLastIssuedAt(int $lastIssuedAt): self
public function setLastIssuedAt(?int $lastIssuedAt): self
{
$this->initialized['lastIssuedAt'] = true;
$this->lastIssuedAt = $lastIssuedAt;

return $this;
}

public function getIssueError(): string
public function getIssueError(): ?string
{
return $this->issueError;
}

public function setIssueError(string $issueError): self
public function setIssueError(?string $issueError): self
{
$this->initialized['issueError'] = true;
$this->issueError = $issueError;

return $this;
}

public function getAuthorizationMethod(): string
public function getAuthorizationMethod(): ?string
{
return $this->authorizationMethod;
}

public function setAuthorizationMethod(string $authorizationMethod): self
public function setAuthorizationMethod(?string $authorizationMethod): self
{
$this->initialized['authorizationMethod'] = true;
$this->authorizationMethod = $authorizationMethod;
Expand All @@ -219,54 +219,54 @@ public function setAuthorizationMethod(string $authorizationMethod): self
/**
* This is the URL that can be used to access this certificate's details. through the certificate API (a different API to this one). If null, this means that it is no longer available. If that is the case, you can get a new URL by resetting the API token for this certificate.
*/
public function getCertificateApiUrl(): string
public function getCertificateApiUrl(): ?string
{
return $this->certificateApiUrl;
}

/**
* This is the URL that can be used to access this certificate's details. through the certificate API (a different API to this one). If null, this means that it is no longer available. If that is the case, you can get a new URL by resetting the API token for this certificate.
*/
public function setCertificateApiUrl(string $certificateApiUrl): self
public function setCertificateApiUrl(?string $certificateApiUrl): self
{
$this->initialized['certificateApiUrl'] = true;
$this->certificateApiUrl = $certificateApiUrl;

return $this;
}

public function getCertificate(): string
public function getCertificate(): ?string
{
return $this->certificate;
}

public function setCertificate(string $certificate): self
public function setCertificate(?string $certificate): self
{
$this->initialized['certificate'] = true;
$this->certificate = $certificate;

return $this;
}

public function getChain(): string
public function getChain(): ?string
{
return $this->chain;
}

public function setChain(string $chain): self
public function setChain(?string $chain): self
{
$this->initialized['chain'] = true;
$this->chain = $chain;

return $this;
}

public function getPrivateKey(): string
public function getPrivateKey(): ?string
{
return $this->privateKey;
}

public function setPrivateKey(string $privateKey): self
public function setPrivateKey(?string $privateKey): self
{
$this->initialized['privateKey'] = true;
$this->privateKey = $privateKey;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ public function isInitialized($property): bool
/**
* The total number of pages.
*
* @var int
* @var int|null
*/
protected $totalPages;
/**
* The total number of items across all pages.
*
* @var int
* @var int|null
*/
protected $total;
/**
Expand Down Expand Up @@ -74,15 +74,15 @@ public function setCurrentPage(int $currentPage): self
/**
* The total number of pages.
*/
public function getTotalPages(): int
public function getTotalPages(): ?int
{
return $this->totalPages;
}

/**
* The total number of pages.
*/
public function setTotalPages(int $totalPages): self
public function setTotalPages(?int $totalPages): self
{
$this->initialized['totalPages'] = true;
$this->totalPages = $totalPages;
Expand All @@ -93,15 +93,15 @@ public function setTotalPages(int $totalPages): self
/**
* The total number of items across all pages.
*/
public function getTotal(): int
public function getTotal(): ?int
{
return $this->total;
}

/**
* The total number of items across all pages.
*/
public function setTotal(int $total): self
public function setTotal(?int $total): self
{
$this->initialized['total'] = true;
$this->total = $total;
Expand Down
6 changes: 3 additions & 3 deletions src/Model/CountriesCountryGetResponse200Country.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function isInitialized($property): bool
*/
protected $isoCode3;
/**
* @var string
* @var string|null
*/
protected $timeZone;
/**
Expand Down Expand Up @@ -98,12 +98,12 @@ public function setIsoCode3(string $isoCode3): self
return $this;
}

public function getTimeZone(): string
public function getTimeZone(): ?string
{
return $this->timeZone;
}

public function setTimeZone(string $timeZone): self
public function setTimeZone(?string $timeZone): self
{
$this->initialized['timeZone'] = true;
$this->timeZone = $timeZone;
Expand Down
12 changes: 6 additions & 6 deletions src/Model/CountriesGetResponse200Pagination.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ public function isInitialized($property): bool
/**
* The total number of pages.
*
* @var int
* @var int|null
*/
protected $totalPages;
/**
* The total number of items across all pages.
*
* @var int
* @var int|null
*/
protected $total;
/**
Expand Down Expand Up @@ -74,15 +74,15 @@ public function setCurrentPage(int $currentPage): self
/**
* The total number of pages.
*/
public function getTotalPages(): int
public function getTotalPages(): ?int
{
return $this->totalPages;
}

/**
* The total number of pages.
*/
public function setTotalPages(int $totalPages): self
public function setTotalPages(?int $totalPages): self
{
$this->initialized['totalPages'] = true;
$this->totalPages = $totalPages;
Expand All @@ -93,15 +93,15 @@ public function setTotalPages(int $totalPages): self
/**
* The total number of items across all pages.
*/
public function getTotal(): int
public function getTotal(): ?int
{
return $this->total;
}

/**
* The total number of items across all pages.
*/
public function setTotal(int $total): self
public function setTotal(?int $total): self
{
$this->initialized['total'] = true;
$this->total = $total;
Expand Down
6 changes: 3 additions & 3 deletions src/Model/Country.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function isInitialized($property): bool
*/
protected $isoCode3;
/**
* @var string
* @var string|null
*/
protected $timeZone;
/**
Expand Down Expand Up @@ -98,12 +98,12 @@ public function setIsoCode3(string $isoCode3): self
return $this;
}

public function getTimeZone(): string
public function getTimeZone(): ?string
{
return $this->timeZone;
}

public function setTimeZone(string $timeZone): self
public function setTimeZone(?string $timeZone): self
{
$this->initialized['timeZone'] = true;
$this->timeZone = $timeZone;
Expand Down
6 changes: 3 additions & 3 deletions src/Model/CountryState.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function isInitialized($property): bool
*/
protected $code;
/**
* @var Country
* @var CountryStateCountry
*/
protected $country;

Expand Down Expand Up @@ -77,12 +77,12 @@ public function setCode(string $code): self
return $this;
}

public function getCountry(): Country
public function getCountry(): CountryStateCountry
{
return $this->country;
}

public function setCountry(Country $country): self
public function setCountry(CountryStateCountry $country): self
{
$this->initialized['country'] = true;
$this->country = $country;
Expand Down
Loading

0 comments on commit 8b16a08

Please sign in to comment.