diff --git a/CHANGELOG.md b/CHANGELOG.md index 2bcb1d5f..2006edba 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -32,6 +32,8 @@ See [DocuSign Support Center](https://support.docusign.com/en/releasenotes/) for ### Changed - Added support for version v2.1-25.2.00.00 of the DocuSign ESignature API. - Updated the SDK release version. +- Modernized constructor classes in Api, Client and Model files (including Configuration.php file) by adding `?array $data = null` to address deprecated warnings in PHP. +- Added return types (`bool`, `mixed`, and `void`) to several functions in model files to improve type safety and compatibility with modern PHP versions. ## [v8.1.0] - eSignature API v2.1-25.1.00.02 - 2025-05-05 ### Changed diff --git a/src/Api/CommentsApi.php b/src/Api/CommentsApi.php index 67ede438..fa62db97 100644 --- a/src/Api/CommentsApi.php +++ b/src/Api/CommentsApi.php @@ -113,7 +113,7 @@ public function getApiClient() * * @return CommentsApi */ - public function setApiClient(\DocuSign\eSign\Client\ApiClient $apiClient) + public function setApiClient(?\DocuSign\eSign\Client\ApiClient $apiClient) { $this->apiClient = $apiClient; return $this; diff --git a/src/Model/CompleteSignHashResponse.php b/src/Model/CompleteSignHashResponse.php index eda78496..aa958ae7 100644 --- a/src/Model/CompleteSignHashResponse.php +++ b/src/Model/CompleteSignHashResponse.php @@ -294,7 +294,7 @@ public function setRemainingSignatureRequests($remaining_signature_requests) * * @return boolean */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -306,7 +306,7 @@ public function offsetExists($offset) * * @return mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return isset($this->container[$offset]) ? $this->container[$offset] : null; } @@ -319,7 +319,7 @@ public function offsetGet($offset) * * @return void */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -335,7 +335,7 @@ public function offsetSet($offset, $value) * * @return void */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/src/Model/CompleteSignRequest.php b/src/Model/CompleteSignRequest.php index 84d6c23c..6339d529 100644 --- a/src/Model/CompleteSignRequest.php +++ b/src/Model/CompleteSignRequest.php @@ -384,7 +384,7 @@ public function setTransactionId($transaction_id) * * @return boolean */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -396,7 +396,7 @@ public function offsetExists($offset) * * @return mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return isset($this->container[$offset]) ? $this->container[$offset] : null; } @@ -409,7 +409,7 @@ public function offsetGet($offset) * * @return void */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -425,7 +425,7 @@ public function offsetSet($offset, $value) * * @return void */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/src/Model/Credential.php b/src/Model/Credential.php index ee13a96f..d6dd496e 100644 --- a/src/Model/Credential.php +++ b/src/Model/Credential.php @@ -294,7 +294,7 @@ public function setValue($value) * * @return boolean */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -306,7 +306,7 @@ public function offsetExists($offset) * * @return mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return isset($this->container[$offset]) ? $this->container[$offset] : null; } @@ -319,7 +319,7 @@ public function offsetGet($offset) * * @return void */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -335,7 +335,7 @@ public function offsetSet($offset, $value) * * @return void */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/src/Model/CustomFieldV2.php b/src/Model/CustomFieldV2.php index 54635c7f..5dde5e7a 100644 --- a/src/Model/CustomFieldV2.php +++ b/src/Model/CustomFieldV2.php @@ -326,7 +326,7 @@ public function setValue($value) * @param integer $offset Offset * @return boolean */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -336,7 +336,7 @@ public function offsetExists($offset) * @param integer $offset Offset * @return mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return isset($this->container[$offset]) ? $this->container[$offset] : null; } @@ -347,7 +347,7 @@ public function offsetGet($offset) * @param mixed $value Value to be set * @return void */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -361,7 +361,7 @@ public function offsetSet($offset, $value) * @param integer $offset Offset * @return void */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/src/Model/DocumentSecurityStore.php b/src/Model/DocumentSecurityStore.php index e3050cc8..5f10296c 100644 --- a/src/Model/DocumentSecurityStore.php +++ b/src/Model/DocumentSecurityStore.php @@ -294,7 +294,7 @@ public function setOcsps($ocsps) * * @return boolean */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -306,7 +306,7 @@ public function offsetExists($offset) * * @return mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return isset($this->container[$offset]) ? $this->container[$offset] : null; } @@ -319,7 +319,7 @@ public function offsetGet($offset) * * @return void */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -335,7 +335,7 @@ public function offsetSet($offset, $value) * * @return void */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/src/Model/DocumentUpdateInfo.php b/src/Model/DocumentUpdateInfo.php index c1bddec9..6d25eba6 100644 --- a/src/Model/DocumentUpdateInfo.php +++ b/src/Model/DocumentUpdateInfo.php @@ -414,7 +414,7 @@ public function setTimeStampField($time_stamp_field) * * @return boolean */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -426,7 +426,7 @@ public function offsetExists($offset) * * @return mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return isset($this->container[$offset]) ? $this->container[$offset] : null; } @@ -439,7 +439,7 @@ public function offsetGet($offset) * * @return void */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -455,7 +455,7 @@ public function offsetSet($offset, $value) * * @return void */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/src/Model/EnvelopeTemplateDefinition.php b/src/Model/EnvelopeTemplateDefinition.php index c7d40d33..4eda7864 100644 --- a/src/Model/EnvelopeTemplateDefinition.php +++ b/src/Model/EnvelopeTemplateDefinition.php @@ -561,7 +561,7 @@ public function setUri($uri) * @param integer $offset Offset * @return boolean */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } diff --git a/src/Model/ExternalClaim.php b/src/Model/ExternalClaim.php index d3ed6275..e586989a 100644 --- a/src/Model/ExternalClaim.php +++ b/src/Model/ExternalClaim.php @@ -324,7 +324,7 @@ public function setValue($value) * * @return boolean */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -336,7 +336,7 @@ public function offsetExists($offset) * * @return mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return isset($this->container[$offset]) ? $this->container[$offset] : null; } @@ -349,7 +349,7 @@ public function offsetGet($offset) * * @return void */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -365,7 +365,7 @@ public function offsetSet($offset, $value) * * @return void */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/src/Model/FolderItem.php b/src/Model/FolderItem.php index d802fe37..630f38cc 100644 --- a/src/Model/FolderItem.php +++ b/src/Model/FolderItem.php @@ -690,7 +690,7 @@ public function setUri($uri) * @param integer $offset Offset * @return boolean */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -700,7 +700,7 @@ public function offsetExists($offset) * @param integer $offset Offset * @return mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return isset($this->container[$offset]) ? $this->container[$offset] : null; } @@ -711,7 +711,7 @@ public function offsetGet($offset) * @param mixed $value Value to be set * @return void */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -725,7 +725,7 @@ public function offsetSet($offset, $value) * @param integer $offset Offset * @return void */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/src/Model/GroupBrands.php b/src/Model/GroupBrands.php index 85f9050c..149cf47d 100644 --- a/src/Model/GroupBrands.php +++ b/src/Model/GroupBrands.php @@ -295,7 +295,7 @@ public function setBrandOptions($brand_options) * * @return boolean */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -307,7 +307,7 @@ public function offsetExists($offset) * * @return mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return isset($this->container[$offset]) ? $this->container[$offset] : null; } @@ -320,7 +320,7 @@ public function offsetGet($offset) * * @return void */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -336,7 +336,7 @@ public function offsetSet($offset, $value) * * @return void */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/src/Model/ReportInProductField.php b/src/Model/ReportInProductField.php index 293d9770..ed7d4358 100644 --- a/src/Model/ReportInProductField.php +++ b/src/Model/ReportInProductField.php @@ -326,7 +326,7 @@ public function setSelected($selected) * * @return boolean */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -338,7 +338,7 @@ public function offsetExists($offset) * * @return mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return isset($this->container[$offset]) ? $this->container[$offset] : null; } @@ -351,7 +351,7 @@ public function offsetGet($offset) * * @return void */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -367,7 +367,7 @@ public function offsetSet($offset, $value) * * @return void */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/src/Model/ReportInProductListItem.php b/src/Model/ReportInProductListItem.php index f1425ee3..3a9023f1 100644 --- a/src/Model/ReportInProductListItem.php +++ b/src/Model/ReportInProductListItem.php @@ -626,7 +626,7 @@ public function setScheduleRenewDurationDays($schedule_renew_duration_days) * * @return boolean */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -638,7 +638,7 @@ public function offsetExists($offset) * * @return mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return isset($this->container[$offset]) ? $this->container[$offset] : null; } @@ -651,7 +651,7 @@ public function offsetGet($offset) * * @return void */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -667,7 +667,7 @@ public function offsetSet($offset, $value) * * @return void */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/src/Model/ReportInProductRunRequest.php b/src/Model/ReportInProductRunRequest.php index 02dcfed0..9567c490 100644 --- a/src/Model/ReportInProductRunRequest.php +++ b/src/Model/ReportInProductRunRequest.php @@ -926,7 +926,7 @@ public function setVerificationStatusFilter($verification_status_filter) * * @return boolean */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -938,7 +938,7 @@ public function offsetExists($offset) * * @return mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return isset($this->container[$offset]) ? $this->container[$offset] : null; } @@ -951,7 +951,7 @@ public function offsetGet($offset) * * @return void */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -967,7 +967,7 @@ public function offsetSet($offset, $value) * * @return void */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/src/Model/ReportInProductRunResponseRow.php b/src/Model/ReportInProductRunResponseRow.php index 9caaf234..8bd557d1 100644 --- a/src/Model/ReportInProductRunResponseRow.php +++ b/src/Model/ReportInProductRunResponseRow.php @@ -266,7 +266,7 @@ public function setFields($fields) * * @return boolean */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -278,7 +278,7 @@ public function offsetExists($offset) * * @return mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return isset($this->container[$offset]) ? $this->container[$offset] : null; } @@ -291,7 +291,7 @@ public function offsetGet($offset) * * @return void */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -307,7 +307,7 @@ public function offsetSet($offset, $value) * * @return void */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/src/Model/ReportInProductRunResponseRowFields.php b/src/Model/ReportInProductRunResponseRowFields.php index 4c8f1ad2..721743eb 100644 --- a/src/Model/ReportInProductRunResponseRowFields.php +++ b/src/Model/ReportInProductRunResponseRowFields.php @@ -4526,7 +4526,7 @@ public function setVoidedTs($voided_ts) * * @return boolean */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -4538,7 +4538,7 @@ public function offsetExists($offset) * * @return mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return isset($this->container[$offset]) ? $this->container[$offset] : null; } @@ -4551,7 +4551,7 @@ public function offsetGet($offset) * * @return void */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -4567,7 +4567,7 @@ public function offsetSet($offset, $value) * * @return void */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/src/Model/ReportInProductSentByDetails.php b/src/Model/ReportInProductSentByDetails.php index b76a7cd1..3e8214c6 100644 --- a/src/Model/ReportInProductSentByDetails.php +++ b/src/Model/ReportInProductSentByDetails.php @@ -266,7 +266,7 @@ public function setUsers($users) * * @return boolean */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -278,7 +278,7 @@ public function offsetExists($offset) * * @return mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return isset($this->container[$offset]) ? $this->container[$offset] : null; } @@ -291,7 +291,7 @@ public function offsetGet($offset) * * @return void */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -307,7 +307,7 @@ public function offsetSet($offset, $value) * * @return void */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/src/Model/Revision.php b/src/Model/Revision.php index 939f651a..f1054b55 100644 --- a/src/Model/Revision.php +++ b/src/Model/Revision.php @@ -384,7 +384,7 @@ public function setStartData($start_data) * * @return boolean */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -396,7 +396,7 @@ public function offsetExists($offset) * * @return mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return isset($this->container[$offset]) ? $this->container[$offset] : null; } @@ -409,7 +409,7 @@ public function offsetGet($offset) * * @return void */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -425,7 +425,7 @@ public function offsetSet($offset, $value) * * @return void */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/src/Model/SamlAssertionAttribute.php b/src/Model/SamlAssertionAttribute.php index 22ea5658..81134c05 100644 --- a/src/Model/SamlAssertionAttribute.php +++ b/src/Model/SamlAssertionAttribute.php @@ -248,7 +248,7 @@ public function setValue($value) * @param integer $offset Offset * @return boolean */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -258,7 +258,7 @@ public function offsetExists($offset) * @param integer $offset Offset * @return mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return isset($this->container[$offset]) ? $this->container[$offset] : null; } @@ -269,7 +269,7 @@ public function offsetGet($offset) * @param mixed $value Value to be set * @return void */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -283,7 +283,7 @@ public function offsetSet($offset, $value) * @param integer $offset Offset * @return void */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/src/Model/Seal.php b/src/Model/Seal.php index 665b1812..47e4f8a9 100644 --- a/src/Model/Seal.php +++ b/src/Model/Seal.php @@ -264,7 +264,7 @@ public function setSealIdentifier($seal_identifier) * * @return boolean */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -276,7 +276,7 @@ public function offsetExists($offset) * * @return mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return isset($this->container[$offset]) ? $this->container[$offset] : null; } @@ -289,7 +289,7 @@ public function offsetGet($offset) * * @return void */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -305,7 +305,7 @@ public function offsetSet($offset, $value) * * @return void */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/src/Model/Sender.php b/src/Model/Sender.php index 39f648eb..8d38cd2f 100644 --- a/src/Model/Sender.php +++ b/src/Model/Sender.php @@ -264,7 +264,7 @@ public function setCompanyName($company_name) * * @return boolean */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -276,7 +276,7 @@ public function offsetExists($offset) * * @return mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return isset($this->container[$offset]) ? $this->container[$offset] : null; } @@ -289,7 +289,7 @@ public function offsetGet($offset) * * @return void */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -305,7 +305,7 @@ public function offsetSet($offset, $value) * * @return void */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/src/Model/SignHashDocument.php b/src/Model/SignHashDocument.php index 8ef3ba4e..9833431b 100644 --- a/src/Model/SignHashDocument.php +++ b/src/Model/SignHashDocument.php @@ -444,7 +444,7 @@ public function setSignatureType($signature_type) * * @return boolean */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -456,7 +456,7 @@ public function offsetExists($offset) * * @return mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return isset($this->container[$offset]) ? $this->container[$offset] : null; } @@ -469,7 +469,7 @@ public function offsetGet($offset) * * @return void */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -485,7 +485,7 @@ public function offsetSet($offset, $value) * * @return void */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/src/Model/SignHashSessionInfoResponse.php b/src/Model/SignHashSessionInfoResponse.php index c215bb18..48c62500 100644 --- a/src/Model/SignHashSessionInfoResponse.php +++ b/src/Model/SignHashSessionInfoResponse.php @@ -444,7 +444,7 @@ public function setUser($user) * * @return boolean */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -456,7 +456,7 @@ public function offsetExists($offset) * * @return mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return isset($this->container[$offset]) ? $this->container[$offset] : null; } @@ -469,7 +469,7 @@ public function offsetGet($offset) * * @return void */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -485,7 +485,7 @@ public function offsetSet($offset, $value) * * @return void */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/src/Model/SignSessionInfoRequest.php b/src/Model/SignSessionInfoRequest.php index d3f19c5b..fadc18e2 100644 --- a/src/Model/SignSessionInfoRequest.php +++ b/src/Model/SignSessionInfoRequest.php @@ -324,7 +324,7 @@ public function setSigningLocation($signing_location) * * @return boolean */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -336,7 +336,7 @@ public function offsetExists($offset) * * @return mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return isset($this->container[$offset]) ? $this->container[$offset] : null; } @@ -349,7 +349,7 @@ public function offsetGet($offset) * * @return void */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -365,7 +365,7 @@ public function offsetSet($offset, $value) * * @return void */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/src/Model/SignatureDataInfo.php b/src/Model/SignatureDataInfo.php index 94167860..05922b27 100644 --- a/src/Model/SignatureDataInfo.php +++ b/src/Model/SignatureDataInfo.php @@ -294,7 +294,7 @@ public function setSignatureFieldName($signature_field_name) * * @return boolean */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -306,7 +306,7 @@ public function offsetExists($offset) * * @return mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return isset($this->container[$offset]) ? $this->container[$offset] : null; } @@ -319,7 +319,7 @@ public function offsetGet($offset) * * @return void */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -335,7 +335,7 @@ public function offsetSet($offset, $value) * * @return void */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/src/Model/SignatureProperties.php b/src/Model/SignatureProperties.php index 3985c755..f0a228aa 100644 --- a/src/Model/SignatureProperties.php +++ b/src/Model/SignatureProperties.php @@ -264,7 +264,7 @@ public function setSubFilter($sub_filter) * * @return boolean */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -276,7 +276,7 @@ public function offsetExists($offset) * * @return mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return isset($this->container[$offset]) ? $this->container[$offset] : null; } @@ -289,7 +289,7 @@ public function offsetGet($offset) * * @return void */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -305,7 +305,7 @@ public function offsetSet($offset, $value) * * @return void */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/src/Model/TimeStampField.php b/src/Model/TimeStampField.php index 91e3190c..44b96d9f 100644 --- a/src/Model/TimeStampField.php +++ b/src/Model/TimeStampField.php @@ -294,7 +294,7 @@ public function setTimeStampFieldName($time_stamp_field_name) * * @return boolean */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -306,7 +306,7 @@ public function offsetExists($offset) * * @return mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return isset($this->container[$offset]) ? $this->container[$offset] : null; } @@ -319,7 +319,7 @@ public function offsetGet($offset) * * @return void */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -335,7 +335,7 @@ public function offsetSet($offset, $value) * * @return void */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/src/Model/TspHealthCheckRequest.php b/src/Model/TspHealthCheckRequest.php index bdea9f24..3306a7ac 100644 --- a/src/Model/TspHealthCheckRequest.php +++ b/src/Model/TspHealthCheckRequest.php @@ -354,7 +354,7 @@ public function setStatusDescription($status_description) * * @return boolean */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -366,7 +366,7 @@ public function offsetExists($offset) * * @return mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return isset($this->container[$offset]) ? $this->container[$offset] : null; } @@ -379,7 +379,7 @@ public function offsetGet($offset) * * @return void */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -395,7 +395,7 @@ public function offsetSet($offset, $value) * * @return void */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/src/Model/TspHealthCheckStatusDescription.php b/src/Model/TspHealthCheckStatusDescription.php index 1e5a2f69..0895b673 100644 --- a/src/Model/TspHealthCheckStatusDescription.php +++ b/src/Model/TspHealthCheckStatusDescription.php @@ -384,7 +384,7 @@ public function setType($type) * * @return boolean */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -396,7 +396,7 @@ public function offsetExists($offset) * * @return mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return isset($this->container[$offset]) ? $this->container[$offset] : null; } @@ -409,7 +409,7 @@ public function offsetGet($offset) * * @return void */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -425,7 +425,7 @@ public function offsetSet($offset, $value) * * @return void */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/src/Model/UpdateTransactionRequest.php b/src/Model/UpdateTransactionRequest.php index c6e08a33..1887eaf4 100644 --- a/src/Model/UpdateTransactionRequest.php +++ b/src/Model/UpdateTransactionRequest.php @@ -294,7 +294,7 @@ public function setState($state) * * @return boolean */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -306,7 +306,7 @@ public function offsetExists($offset) * * @return mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return isset($this->container[$offset]) ? $this->container[$offset] : null; } @@ -319,7 +319,7 @@ public function offsetGet($offset) * * @return void */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -335,7 +335,7 @@ public function offsetSet($offset, $value) * * @return void */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/src/Model/UpdateTransactionResponse.php b/src/Model/UpdateTransactionResponse.php index f6a8cbf7..1e146ef7 100644 --- a/src/Model/UpdateTransactionResponse.php +++ b/src/Model/UpdateTransactionResponse.php @@ -234,7 +234,7 @@ public function setRedirectionUrl($redirection_url) * * @return boolean */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -246,7 +246,7 @@ public function offsetExists($offset) * * @return mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return isset($this->container[$offset]) ? $this->container[$offset] : null; } @@ -259,7 +259,7 @@ public function offsetGet($offset) * * @return void */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -275,7 +275,7 @@ public function offsetSet($offset, $value) * * @return void */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/src/Model/User.php b/src/Model/User.php index ad99b043..b82ab96d 100644 --- a/src/Model/User.php +++ b/src/Model/User.php @@ -384,7 +384,7 @@ public function setExternalClaims($external_claims) * * @return boolean */ - public function offsetExists($offset) + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -396,7 +396,7 @@ public function offsetExists($offset) * * @return mixed */ - public function offsetGet($offset) + public function offsetGet($offset): bool { return isset($this->container[$offset]) ? $this->container[$offset] : null; } @@ -409,7 +409,7 @@ public function offsetGet($offset) * * @return void */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -425,7 +425,7 @@ public function offsetSet($offset, $value) * * @return void */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/src/Model/UserInfoResponse.php b/src/Model/UserInfoResponse.php index 2f1e3d0c..8621889c 100644 --- a/src/Model/UserInfoResponse.php +++ b/src/Model/UserInfoResponse.php @@ -354,7 +354,7 @@ public function setUser($user) * * @return boolean */ - public function offsetExists($offset) + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -366,7 +366,7 @@ public function offsetExists($offset) * * @return mixed */ - public function offsetGet($offset) + public function offsetGet(mixed $offset): bool { return isset($this->container[$offset]) ? $this->container[$offset] : null; } @@ -379,7 +379,7 @@ public function offsetGet($offset) * * @return void */ - public function offsetSet($offset, $value) + public function offsetSet($offset, mixed $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -395,7 +395,7 @@ public function offsetSet($offset, $value) * * @return void */ - public function offsetUnset($offset) + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); }