diff --git a/clients/algoliasearch-client-php/lib/Model/Abtesting/ABTest.php b/clients/algoliasearch-client-php/lib/Model/Abtesting/ABTest.php index 02aea03c6b..c12e7aa30e 100644 --- a/clients/algoliasearch-client-php/lib/Model/Abtesting/ABTest.php +++ b/clients/algoliasearch-client-php/lib/Model/Abtesting/ABTest.php @@ -605,10 +605,8 @@ public function setConfiguration($configuration) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -620,7 +618,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -631,7 +629,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -645,7 +643,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Abtesting/ABTestConfiguration.php b/clients/algoliasearch-client-php/lib/Model/Abtesting/ABTestConfiguration.php index b5d0c461dd..563a86265f 100644 --- a/clients/algoliasearch-client-php/lib/Model/Abtesting/ABTestConfiguration.php +++ b/clients/algoliasearch-client-php/lib/Model/Abtesting/ABTestConfiguration.php @@ -250,10 +250,8 @@ public function setMinimumDetectableEffect($minimumDetectableEffect) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -265,7 +263,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -276,7 +274,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -290,7 +288,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Abtesting/ABTestResponse.php b/clients/algoliasearch-client-php/lib/Model/Abtesting/ABTestResponse.php index 31b48dfd33..f587295459 100644 --- a/clients/algoliasearch-client-php/lib/Model/Abtesting/ABTestResponse.php +++ b/clients/algoliasearch-client-php/lib/Model/Abtesting/ABTestResponse.php @@ -254,10 +254,8 @@ public function setTaskID($taskID) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -269,7 +267,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -280,7 +278,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -294,7 +292,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Abtesting/AbTestsVariant.php b/clients/algoliasearch-client-php/lib/Model/Abtesting/AbTestsVariant.php index 2be8a3984f..54d4ddbde3 100644 --- a/clients/algoliasearch-client-php/lib/Model/Abtesting/AbTestsVariant.php +++ b/clients/algoliasearch-client-php/lib/Model/Abtesting/AbTestsVariant.php @@ -265,10 +265,8 @@ public function setDescription($description) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -280,7 +278,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -291,7 +289,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -305,7 +303,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Abtesting/AbTestsVariantSearchParams.php b/clients/algoliasearch-client-php/lib/Model/Abtesting/AbTestsVariantSearchParams.php index 2b20ffff15..d8a4a1fb61 100644 --- a/clients/algoliasearch-client-php/lib/Model/Abtesting/AbTestsVariantSearchParams.php +++ b/clients/algoliasearch-client-php/lib/Model/Abtesting/AbTestsVariantSearchParams.php @@ -301,10 +301,8 @@ public function setCustomSearchParameters($customSearchParameters) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -316,7 +314,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -327,7 +325,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -341,7 +339,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Abtesting/AddABTestsRequest.php b/clients/algoliasearch-client-php/lib/Model/Abtesting/AddABTestsRequest.php index 5ea082edaa..8dd07c1769 100644 --- a/clients/algoliasearch-client-php/lib/Model/Abtesting/AddABTestsRequest.php +++ b/clients/algoliasearch-client-php/lib/Model/Abtesting/AddABTestsRequest.php @@ -268,10 +268,8 @@ public function setEndAt($endAt) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -283,7 +281,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -294,7 +292,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -308,7 +306,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Abtesting/AddABTestsVariant.php b/clients/algoliasearch-client-php/lib/Model/Abtesting/AddABTestsVariant.php index a3b402bf77..dc0bd5ba09 100644 --- a/clients/algoliasearch-client-php/lib/Model/Abtesting/AddABTestsVariant.php +++ b/clients/algoliasearch-client-php/lib/Model/Abtesting/AddABTestsVariant.php @@ -301,10 +301,8 @@ public function setCustomSearchParameters($customSearchParameters) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -316,7 +314,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -327,7 +325,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -341,7 +339,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Abtesting/Currency.php b/clients/algoliasearch-client-php/lib/Model/Abtesting/Currency.php index 47f6bd89d1..0890643800 100644 --- a/clients/algoliasearch-client-php/lib/Model/Abtesting/Currency.php +++ b/clients/algoliasearch-client-php/lib/Model/Abtesting/Currency.php @@ -274,10 +274,8 @@ public function setStandardDeviation($standardDeviation) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -289,7 +287,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -300,7 +298,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -314,7 +312,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Abtesting/EmptySearch.php b/clients/algoliasearch-client-php/lib/Model/Abtesting/EmptySearch.php index 1835473e12..f3c21d9a4f 100644 --- a/clients/algoliasearch-client-php/lib/Model/Abtesting/EmptySearch.php +++ b/clients/algoliasearch-client-php/lib/Model/Abtesting/EmptySearch.php @@ -180,10 +180,8 @@ public function setExclude($exclude) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -195,7 +193,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -206,7 +204,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -220,7 +218,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Abtesting/EmptySearchFilter.php b/clients/algoliasearch-client-php/lib/Model/Abtesting/EmptySearchFilter.php index ab8d2c07ec..e8fd43754a 100644 --- a/clients/algoliasearch-client-php/lib/Model/Abtesting/EmptySearchFilter.php +++ b/clients/algoliasearch-client-php/lib/Model/Abtesting/EmptySearchFilter.php @@ -212,10 +212,8 @@ public function setTrackedSearchesCount($trackedSearchesCount) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -227,7 +225,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -238,7 +236,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -252,7 +250,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Abtesting/FilterEffects.php b/clients/algoliasearch-client-php/lib/Model/Abtesting/FilterEffects.php index 8182f7a2a5..80a3664323 100644 --- a/clients/algoliasearch-client-php/lib/Model/Abtesting/FilterEffects.php +++ b/clients/algoliasearch-client-php/lib/Model/Abtesting/FilterEffects.php @@ -212,10 +212,8 @@ public function setEmptySearch($emptySearch) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -227,7 +225,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -238,7 +236,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -252,7 +250,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Abtesting/ListABTestsResponse.php b/clients/algoliasearch-client-php/lib/Model/Abtesting/ListABTestsResponse.php index d15845aa1c..425dcd572a 100644 --- a/clients/algoliasearch-client-php/lib/Model/Abtesting/ListABTestsResponse.php +++ b/clients/algoliasearch-client-php/lib/Model/Abtesting/ListABTestsResponse.php @@ -254,10 +254,8 @@ public function setTotal($total) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -269,7 +267,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -280,7 +278,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -294,7 +292,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Abtesting/MinimumDetectableEffect.php b/clients/algoliasearch-client-php/lib/Model/Abtesting/MinimumDetectableEffect.php index 1fd321dd11..39e5d33bbf 100644 --- a/clients/algoliasearch-client-php/lib/Model/Abtesting/MinimumDetectableEffect.php +++ b/clients/algoliasearch-client-php/lib/Model/Abtesting/MinimumDetectableEffect.php @@ -229,10 +229,8 @@ public function setEffect($effect) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -244,7 +242,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -255,7 +253,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -269,7 +267,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Abtesting/Outliers.php b/clients/algoliasearch-client-php/lib/Model/Abtesting/Outliers.php index 368ef67ca5..0478449021 100644 --- a/clients/algoliasearch-client-php/lib/Model/Abtesting/Outliers.php +++ b/clients/algoliasearch-client-php/lib/Model/Abtesting/Outliers.php @@ -180,10 +180,8 @@ public function setExclude($exclude) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -195,7 +193,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -206,7 +204,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -220,7 +218,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Abtesting/OutliersFilter.php b/clients/algoliasearch-client-php/lib/Model/Abtesting/OutliersFilter.php index 83039bef67..cd34bc4dea 100644 --- a/clients/algoliasearch-client-php/lib/Model/Abtesting/OutliersFilter.php +++ b/clients/algoliasearch-client-php/lib/Model/Abtesting/OutliersFilter.php @@ -212,10 +212,8 @@ public function setTrackedSearchesCount($trackedSearchesCount) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -227,7 +225,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -238,7 +236,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -252,7 +250,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Abtesting/ScheduleABTestResponse.php b/clients/algoliasearch-client-php/lib/Model/Abtesting/ScheduleABTestResponse.php index d05473ffe2..e35771be27 100644 --- a/clients/algoliasearch-client-php/lib/Model/Abtesting/ScheduleABTestResponse.php +++ b/clients/algoliasearch-client-php/lib/Model/Abtesting/ScheduleABTestResponse.php @@ -184,10 +184,8 @@ public function setAbTestScheduleID($abTestScheduleID) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -199,7 +197,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -210,7 +208,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -224,7 +222,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Abtesting/ScheduleABTestsRequest.php b/clients/algoliasearch-client-php/lib/Model/Abtesting/ScheduleABTestsRequest.php index 9bd22a7f2c..e77110014a 100644 --- a/clients/algoliasearch-client-php/lib/Model/Abtesting/ScheduleABTestsRequest.php +++ b/clients/algoliasearch-client-php/lib/Model/Abtesting/ScheduleABTestsRequest.php @@ -303,10 +303,8 @@ public function setEndAt($endAt) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -318,7 +316,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -329,7 +327,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -343,7 +341,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Abtesting/Variant.php b/clients/algoliasearch-client-php/lib/Model/Abtesting/Variant.php index 2da12a7fbb..9573c60bab 100644 --- a/clients/algoliasearch-client-php/lib/Model/Abtesting/Variant.php +++ b/clients/algoliasearch-client-php/lib/Model/Abtesting/Variant.php @@ -852,10 +852,8 @@ public function setTrackedUserCount($trackedUserCount) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -867,7 +865,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -878,7 +876,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -892,7 +890,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Analytics/ClickPosition.php b/clients/algoliasearch-client-php/lib/Model/Analytics/ClickPosition.php index c3d635266e..6bd6121c68 100644 --- a/clients/algoliasearch-client-php/lib/Model/Analytics/ClickPosition.php +++ b/clients/algoliasearch-client-php/lib/Model/Analytics/ClickPosition.php @@ -236,10 +236,8 @@ public function setClickCount($clickCount) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -251,7 +249,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -262,7 +260,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -276,7 +274,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Analytics/CurrenciesValue.php b/clients/algoliasearch-client-php/lib/Model/Analytics/CurrenciesValue.php index 16dd20c71b..d6051513de 100644 --- a/clients/algoliasearch-client-php/lib/Model/Analytics/CurrenciesValue.php +++ b/clients/algoliasearch-client-php/lib/Model/Analytics/CurrenciesValue.php @@ -212,10 +212,8 @@ public function setRevenue($revenue) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -227,7 +225,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -238,7 +236,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -252,7 +250,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Analytics/DailyAddToCartRates.php b/clients/algoliasearch-client-php/lib/Model/Analytics/DailyAddToCartRates.php index 05f70fd8ff..fff1a99b3c 100644 --- a/clients/algoliasearch-client-php/lib/Model/Analytics/DailyAddToCartRates.php +++ b/clients/algoliasearch-client-php/lib/Model/Analytics/DailyAddToCartRates.php @@ -312,10 +312,8 @@ public function setDate($date) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -327,7 +325,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -338,7 +336,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -352,7 +350,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Analytics/DailyAverageClicks.php b/clients/algoliasearch-client-php/lib/Model/Analytics/DailyAverageClicks.php index 1bb170f6ed..e97a84ca6c 100644 --- a/clients/algoliasearch-client-php/lib/Model/Analytics/DailyAverageClicks.php +++ b/clients/algoliasearch-client-php/lib/Model/Analytics/DailyAverageClicks.php @@ -270,10 +270,8 @@ public function setDate($date) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -285,7 +283,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -296,7 +294,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -310,7 +308,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Analytics/DailyClickThroughRates.php b/clients/algoliasearch-client-php/lib/Model/Analytics/DailyClickThroughRates.php index becc65319d..81374dda9f 100644 --- a/clients/algoliasearch-client-php/lib/Model/Analytics/DailyClickThroughRates.php +++ b/clients/algoliasearch-client-php/lib/Model/Analytics/DailyClickThroughRates.php @@ -312,10 +312,8 @@ public function setDate($date) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -327,7 +325,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -338,7 +336,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -352,7 +350,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Analytics/DailyConversionRates.php b/clients/algoliasearch-client-php/lib/Model/Analytics/DailyConversionRates.php index 9be34f70d3..6cdbf78f24 100644 --- a/clients/algoliasearch-client-php/lib/Model/Analytics/DailyConversionRates.php +++ b/clients/algoliasearch-client-php/lib/Model/Analytics/DailyConversionRates.php @@ -312,10 +312,8 @@ public function setDate($date) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -327,7 +325,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -338,7 +336,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -352,7 +350,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Analytics/DailyNoClickRates.php b/clients/algoliasearch-client-php/lib/Model/Analytics/DailyNoClickRates.php index 99b3cc0bad..a2075799ac 100644 --- a/clients/algoliasearch-client-php/lib/Model/Analytics/DailyNoClickRates.php +++ b/clients/algoliasearch-client-php/lib/Model/Analytics/DailyNoClickRates.php @@ -312,10 +312,8 @@ public function setDate($date) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -327,7 +325,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -338,7 +336,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -352,7 +350,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Analytics/DailyNoResultsRates.php b/clients/algoliasearch-client-php/lib/Model/Analytics/DailyNoResultsRates.php index 97cc6f8a6e..4259f52782 100644 --- a/clients/algoliasearch-client-php/lib/Model/Analytics/DailyNoResultsRates.php +++ b/clients/algoliasearch-client-php/lib/Model/Analytics/DailyNoResultsRates.php @@ -303,10 +303,8 @@ public function setRate($rate) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -318,7 +316,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -329,7 +327,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -343,7 +341,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Analytics/DailyPurchaseRates.php b/clients/algoliasearch-client-php/lib/Model/Analytics/DailyPurchaseRates.php index 6444efd2f8..50088b79fb 100644 --- a/clients/algoliasearch-client-php/lib/Model/Analytics/DailyPurchaseRates.php +++ b/clients/algoliasearch-client-php/lib/Model/Analytics/DailyPurchaseRates.php @@ -304,10 +304,8 @@ public function setDate($date) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -319,7 +317,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -330,7 +328,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -344,7 +342,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Analytics/DailyRevenue.php b/clients/algoliasearch-client-php/lib/Model/Analytics/DailyRevenue.php index c1980c9520..fdfbaddc84 100644 --- a/clients/algoliasearch-client-php/lib/Model/Analytics/DailyRevenue.php +++ b/clients/algoliasearch-client-php/lib/Model/Analytics/DailyRevenue.php @@ -219,10 +219,8 @@ public function setDate($date) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -234,7 +232,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -245,7 +243,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -259,7 +257,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Analytics/DailySearches.php b/clients/algoliasearch-client-php/lib/Model/Analytics/DailySearches.php index 6f4fef04aa..dc130d63bb 100644 --- a/clients/algoliasearch-client-php/lib/Model/Analytics/DailySearches.php +++ b/clients/algoliasearch-client-php/lib/Model/Analytics/DailySearches.php @@ -219,10 +219,8 @@ public function setCount($count) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -234,7 +232,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -245,7 +243,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -259,7 +257,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Analytics/DailySearchesNoClicks.php b/clients/algoliasearch-client-php/lib/Model/Analytics/DailySearchesNoClicks.php index 0379dc61c7..79e0b7aead 100644 --- a/clients/algoliasearch-client-php/lib/Model/Analytics/DailySearchesNoClicks.php +++ b/clients/algoliasearch-client-php/lib/Model/Analytics/DailySearchesNoClicks.php @@ -262,10 +262,8 @@ public function setNbHits($nbHits) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -277,7 +275,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -288,7 +286,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -302,7 +300,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Analytics/DailySearchesNoResults.php b/clients/algoliasearch-client-php/lib/Model/Analytics/DailySearchesNoResults.php index b8008b0211..d61c7cf320 100644 --- a/clients/algoliasearch-client-php/lib/Model/Analytics/DailySearchesNoResults.php +++ b/clients/algoliasearch-client-php/lib/Model/Analytics/DailySearchesNoResults.php @@ -261,10 +261,8 @@ public function setWithFilterCount($withFilterCount) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -276,7 +274,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -287,7 +285,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -301,7 +299,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Analytics/DailyUsers.php b/clients/algoliasearch-client-php/lib/Model/Analytics/DailyUsers.php index 9686b68fff..8e5cb257d0 100644 --- a/clients/algoliasearch-client-php/lib/Model/Analytics/DailyUsers.php +++ b/clients/algoliasearch-client-php/lib/Model/Analytics/DailyUsers.php @@ -219,10 +219,8 @@ public function setCount($count) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -234,7 +232,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -245,7 +243,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -259,7 +257,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Analytics/GetAddToCartRateResponse.php b/clients/algoliasearch-client-php/lib/Model/Analytics/GetAddToCartRateResponse.php index c0c402c92f..89c3c66c9e 100644 --- a/clients/algoliasearch-client-php/lib/Model/Analytics/GetAddToCartRateResponse.php +++ b/clients/algoliasearch-client-php/lib/Model/Analytics/GetAddToCartRateResponse.php @@ -312,10 +312,8 @@ public function setDates($dates) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -327,7 +325,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -338,7 +336,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -352,7 +350,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Analytics/GetAverageClickPositionResponse.php b/clients/algoliasearch-client-php/lib/Model/Analytics/GetAverageClickPositionResponse.php index 210c7ed037..a9d6454070 100644 --- a/clients/algoliasearch-client-php/lib/Model/Analytics/GetAverageClickPositionResponse.php +++ b/clients/algoliasearch-client-php/lib/Model/Analytics/GetAverageClickPositionResponse.php @@ -270,10 +270,8 @@ public function setDates($dates) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -285,7 +283,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -296,7 +294,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -310,7 +308,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Analytics/GetClickPositionsResponse.php b/clients/algoliasearch-client-php/lib/Model/Analytics/GetClickPositionsResponse.php index fce0795a9b..9c53ec9acc 100644 --- a/clients/algoliasearch-client-php/lib/Model/Analytics/GetClickPositionsResponse.php +++ b/clients/algoliasearch-client-php/lib/Model/Analytics/GetClickPositionsResponse.php @@ -197,10 +197,8 @@ public function setPositions($positions) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -212,7 +210,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -223,7 +221,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -237,7 +235,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Analytics/GetClickThroughRateResponse.php b/clients/algoliasearch-client-php/lib/Model/Analytics/GetClickThroughRateResponse.php index c8a7a5d4f6..56f34a9493 100644 --- a/clients/algoliasearch-client-php/lib/Model/Analytics/GetClickThroughRateResponse.php +++ b/clients/algoliasearch-client-php/lib/Model/Analytics/GetClickThroughRateResponse.php @@ -312,10 +312,8 @@ public function setDates($dates) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -327,7 +325,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -338,7 +336,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -352,7 +350,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Analytics/GetConversionRateResponse.php b/clients/algoliasearch-client-php/lib/Model/Analytics/GetConversionRateResponse.php index 783512a7d4..35715f903a 100644 --- a/clients/algoliasearch-client-php/lib/Model/Analytics/GetConversionRateResponse.php +++ b/clients/algoliasearch-client-php/lib/Model/Analytics/GetConversionRateResponse.php @@ -312,10 +312,8 @@ public function setDates($dates) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -327,7 +325,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -338,7 +336,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -352,7 +350,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Analytics/GetNoClickRateResponse.php b/clients/algoliasearch-client-php/lib/Model/Analytics/GetNoClickRateResponse.php index 7a6448ba4a..95ed6b16d3 100644 --- a/clients/algoliasearch-client-php/lib/Model/Analytics/GetNoClickRateResponse.php +++ b/clients/algoliasearch-client-php/lib/Model/Analytics/GetNoClickRateResponse.php @@ -312,10 +312,8 @@ public function setDates($dates) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -327,7 +325,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -338,7 +336,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -352,7 +350,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Analytics/GetNoResultsRateResponse.php b/clients/algoliasearch-client-php/lib/Model/Analytics/GetNoResultsRateResponse.php index ea90bc1aec..3c499422c9 100644 --- a/clients/algoliasearch-client-php/lib/Model/Analytics/GetNoResultsRateResponse.php +++ b/clients/algoliasearch-client-php/lib/Model/Analytics/GetNoResultsRateResponse.php @@ -304,10 +304,8 @@ public function setDates($dates) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -319,7 +317,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -330,7 +328,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -344,7 +342,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Analytics/GetPurchaseRateResponse.php b/clients/algoliasearch-client-php/lib/Model/Analytics/GetPurchaseRateResponse.php index a100a2331d..9e045fe6fe 100644 --- a/clients/algoliasearch-client-php/lib/Model/Analytics/GetPurchaseRateResponse.php +++ b/clients/algoliasearch-client-php/lib/Model/Analytics/GetPurchaseRateResponse.php @@ -304,10 +304,8 @@ public function setDates($dates) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -319,7 +317,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -330,7 +328,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -344,7 +342,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Analytics/GetRevenue.php b/clients/algoliasearch-client-php/lib/Model/Analytics/GetRevenue.php index 2e7b702207..20548ca660 100644 --- a/clients/algoliasearch-client-php/lib/Model/Analytics/GetRevenue.php +++ b/clients/algoliasearch-client-php/lib/Model/Analytics/GetRevenue.php @@ -219,10 +219,8 @@ public function setDates($dates) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -234,7 +232,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -245,7 +243,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -259,7 +257,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Analytics/GetSearchesCountResponse.php b/clients/algoliasearch-client-php/lib/Model/Analytics/GetSearchesCountResponse.php index 57cf6bd745..1bf4407231 100644 --- a/clients/algoliasearch-client-php/lib/Model/Analytics/GetSearchesCountResponse.php +++ b/clients/algoliasearch-client-php/lib/Model/Analytics/GetSearchesCountResponse.php @@ -219,10 +219,8 @@ public function setDates($dates) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -234,7 +232,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -245,7 +243,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -259,7 +257,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Analytics/GetSearchesNoClicksResponse.php b/clients/algoliasearch-client-php/lib/Model/Analytics/GetSearchesNoClicksResponse.php index 004119abb9..c4b11a192c 100644 --- a/clients/algoliasearch-client-php/lib/Model/Analytics/GetSearchesNoClicksResponse.php +++ b/clients/algoliasearch-client-php/lib/Model/Analytics/GetSearchesNoClicksResponse.php @@ -184,10 +184,8 @@ public function setSearches($searches) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -199,7 +197,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -210,7 +208,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -224,7 +222,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Analytics/GetSearchesNoResultsResponse.php b/clients/algoliasearch-client-php/lib/Model/Analytics/GetSearchesNoResultsResponse.php index f26dced000..67db7f5834 100644 --- a/clients/algoliasearch-client-php/lib/Model/Analytics/GetSearchesNoResultsResponse.php +++ b/clients/algoliasearch-client-php/lib/Model/Analytics/GetSearchesNoResultsResponse.php @@ -184,10 +184,8 @@ public function setSearches($searches) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -199,7 +197,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -210,7 +208,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -224,7 +222,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Analytics/GetStatusResponse.php b/clients/algoliasearch-client-php/lib/Model/Analytics/GetStatusResponse.php index 117ca0cff0..5c0585cb53 100644 --- a/clients/algoliasearch-client-php/lib/Model/Analytics/GetStatusResponse.php +++ b/clients/algoliasearch-client-php/lib/Model/Analytics/GetStatusResponse.php @@ -184,10 +184,8 @@ public function setUpdatedAt($updatedAt) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -199,7 +197,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -210,7 +208,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -224,7 +222,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Analytics/GetTopCountriesResponse.php b/clients/algoliasearch-client-php/lib/Model/Analytics/GetTopCountriesResponse.php index 472809bd02..02ca30bd61 100644 --- a/clients/algoliasearch-client-php/lib/Model/Analytics/GetTopCountriesResponse.php +++ b/clients/algoliasearch-client-php/lib/Model/Analytics/GetTopCountriesResponse.php @@ -184,10 +184,8 @@ public function setCountries($countries) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -199,7 +197,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -210,7 +208,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -224,7 +222,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Analytics/GetTopFilterAttribute.php b/clients/algoliasearch-client-php/lib/Model/Analytics/GetTopFilterAttribute.php index 7b002a3e78..da2299b545 100644 --- a/clients/algoliasearch-client-php/lib/Model/Analytics/GetTopFilterAttribute.php +++ b/clients/algoliasearch-client-php/lib/Model/Analytics/GetTopFilterAttribute.php @@ -219,10 +219,8 @@ public function setCount($count) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -234,7 +232,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -245,7 +243,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -259,7 +257,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Analytics/GetTopFilterAttributesResponse.php b/clients/algoliasearch-client-php/lib/Model/Analytics/GetTopFilterAttributesResponse.php index cf3eddbf8d..1e29e5f654 100644 --- a/clients/algoliasearch-client-php/lib/Model/Analytics/GetTopFilterAttributesResponse.php +++ b/clients/algoliasearch-client-php/lib/Model/Analytics/GetTopFilterAttributesResponse.php @@ -184,10 +184,8 @@ public function setAttributes($attributes) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -199,7 +197,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -210,7 +208,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -224,7 +222,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Analytics/GetTopFilterForAttribute.php b/clients/algoliasearch-client-php/lib/Model/Analytics/GetTopFilterForAttribute.php index 6671c9f7fe..1141a5942c 100644 --- a/clients/algoliasearch-client-php/lib/Model/Analytics/GetTopFilterForAttribute.php +++ b/clients/algoliasearch-client-php/lib/Model/Analytics/GetTopFilterForAttribute.php @@ -289,10 +289,8 @@ public function setCount($count) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -304,7 +302,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -315,7 +313,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -329,7 +327,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Analytics/GetTopFilterForAttributeResponse.php b/clients/algoliasearch-client-php/lib/Model/Analytics/GetTopFilterForAttributeResponse.php index 6fdfa8632f..26d0762c80 100644 --- a/clients/algoliasearch-client-php/lib/Model/Analytics/GetTopFilterForAttributeResponse.php +++ b/clients/algoliasearch-client-php/lib/Model/Analytics/GetTopFilterForAttributeResponse.php @@ -184,10 +184,8 @@ public function setValues($values) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -199,7 +197,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -210,7 +208,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -224,7 +222,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Analytics/GetTopFiltersNoResultsResponse.php b/clients/algoliasearch-client-php/lib/Model/Analytics/GetTopFiltersNoResultsResponse.php index b93b535ae7..394118c450 100644 --- a/clients/algoliasearch-client-php/lib/Model/Analytics/GetTopFiltersNoResultsResponse.php +++ b/clients/algoliasearch-client-php/lib/Model/Analytics/GetTopFiltersNoResultsResponse.php @@ -184,10 +184,8 @@ public function setValues($values) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -199,7 +197,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -210,7 +208,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -224,7 +222,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Analytics/GetTopFiltersNoResultsValue.php b/clients/algoliasearch-client-php/lib/Model/Analytics/GetTopFiltersNoResultsValue.php index 58c4c3934b..58083c1330 100644 --- a/clients/algoliasearch-client-php/lib/Model/Analytics/GetTopFiltersNoResultsValue.php +++ b/clients/algoliasearch-client-php/lib/Model/Analytics/GetTopFiltersNoResultsValue.php @@ -254,10 +254,8 @@ public function setValue($value) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -269,7 +267,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -280,7 +278,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -294,7 +292,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Analytics/GetTopFiltersNoResultsValues.php b/clients/algoliasearch-client-php/lib/Model/Analytics/GetTopFiltersNoResultsValues.php index bb91007885..4bd5fc959d 100644 --- a/clients/algoliasearch-client-php/lib/Model/Analytics/GetTopFiltersNoResultsValues.php +++ b/clients/algoliasearch-client-php/lib/Model/Analytics/GetTopFiltersNoResultsValues.php @@ -219,10 +219,8 @@ public function setValues($values) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -234,7 +232,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -245,7 +243,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -259,7 +257,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Analytics/GetTopHitsResponse.php b/clients/algoliasearch-client-php/lib/Model/Analytics/GetTopHitsResponse.php index feeb6985a1..30388ff569 100644 --- a/clients/algoliasearch-client-php/lib/Model/Analytics/GetTopHitsResponse.php +++ b/clients/algoliasearch-client-php/lib/Model/Analytics/GetTopHitsResponse.php @@ -184,10 +184,8 @@ public function setHits($hits) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -199,7 +197,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -210,7 +208,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -224,7 +222,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Analytics/GetTopSearchesResponse.php b/clients/algoliasearch-client-php/lib/Model/Analytics/GetTopSearchesResponse.php index f951523613..7d10da4257 100644 --- a/clients/algoliasearch-client-php/lib/Model/Analytics/GetTopSearchesResponse.php +++ b/clients/algoliasearch-client-php/lib/Model/Analytics/GetTopSearchesResponse.php @@ -184,10 +184,8 @@ public function setSearches($searches) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -199,7 +197,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -210,7 +208,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -224,7 +222,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Analytics/GetUsersCountResponse.php b/clients/algoliasearch-client-php/lib/Model/Analytics/GetUsersCountResponse.php index a2f09442c6..53bdb56fe0 100644 --- a/clients/algoliasearch-client-php/lib/Model/Analytics/GetUsersCountResponse.php +++ b/clients/algoliasearch-client-php/lib/Model/Analytics/GetUsersCountResponse.php @@ -219,10 +219,8 @@ public function setDates($dates) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -234,7 +232,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -245,7 +243,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -259,7 +257,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Analytics/TopCountry.php b/clients/algoliasearch-client-php/lib/Model/Analytics/TopCountry.php index eaf5f37937..1143f1e263 100644 --- a/clients/algoliasearch-client-php/lib/Model/Analytics/TopCountry.php +++ b/clients/algoliasearch-client-php/lib/Model/Analytics/TopCountry.php @@ -219,10 +219,8 @@ public function setCount($count) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -234,7 +232,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -245,7 +243,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -259,7 +257,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Analytics/TopHit.php b/clients/algoliasearch-client-php/lib/Model/Analytics/TopHit.php index a05c020aa8..300b7abbe2 100644 --- a/clients/algoliasearch-client-php/lib/Model/Analytics/TopHit.php +++ b/clients/algoliasearch-client-php/lib/Model/Analytics/TopHit.php @@ -219,10 +219,8 @@ public function setCount($count) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -234,7 +232,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -245,7 +243,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -259,7 +257,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Analytics/TopHitWithAnalytics.php b/clients/algoliasearch-client-php/lib/Model/Analytics/TopHitWithAnalytics.php index 0b04bee2cf..df1d7af119 100644 --- a/clients/algoliasearch-client-php/lib/Model/Analytics/TopHitWithAnalytics.php +++ b/clients/algoliasearch-client-php/lib/Model/Analytics/TopHitWithAnalytics.php @@ -439,10 +439,8 @@ public function setConversionCount($conversionCount) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -454,7 +452,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -465,7 +463,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -479,7 +477,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Analytics/TopHitWithRevenueAnalytics.php b/clients/algoliasearch-client-php/lib/Model/Analytics/TopHitWithRevenueAnalytics.php index 879b0d893d..72bc5cff18 100644 --- a/clients/algoliasearch-client-php/lib/Model/Analytics/TopHitWithRevenueAnalytics.php +++ b/clients/algoliasearch-client-php/lib/Model/Analytics/TopHitWithRevenueAnalytics.php @@ -653,10 +653,8 @@ public function setCurrencies($currencies) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -668,7 +666,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -679,7 +677,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -693,7 +691,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Analytics/TopHitsResponse.php b/clients/algoliasearch-client-php/lib/Model/Analytics/TopHitsResponse.php index b01924bcc4..88a8d228df 100644 --- a/clients/algoliasearch-client-php/lib/Model/Analytics/TopHitsResponse.php +++ b/clients/algoliasearch-client-php/lib/Model/Analytics/TopHitsResponse.php @@ -184,10 +184,8 @@ public function setHits($hits) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -199,7 +197,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -210,7 +208,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -224,7 +222,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Analytics/TopHitsResponseWithAnalytics.php b/clients/algoliasearch-client-php/lib/Model/Analytics/TopHitsResponseWithAnalytics.php index f46d915313..521977bee9 100644 --- a/clients/algoliasearch-client-php/lib/Model/Analytics/TopHitsResponseWithAnalytics.php +++ b/clients/algoliasearch-client-php/lib/Model/Analytics/TopHitsResponseWithAnalytics.php @@ -184,10 +184,8 @@ public function setHits($hits) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -199,7 +197,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -210,7 +208,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -224,7 +222,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Analytics/TopHitsResponseWithRevenueAnalytics.php b/clients/algoliasearch-client-php/lib/Model/Analytics/TopHitsResponseWithRevenueAnalytics.php index 906727c10f..25d47651a0 100644 --- a/clients/algoliasearch-client-php/lib/Model/Analytics/TopHitsResponseWithRevenueAnalytics.php +++ b/clients/algoliasearch-client-php/lib/Model/Analytics/TopHitsResponseWithRevenueAnalytics.php @@ -184,10 +184,8 @@ public function setHits($hits) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -199,7 +197,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -210,7 +208,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -224,7 +222,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Analytics/TopSearch.php b/clients/algoliasearch-client-php/lib/Model/Analytics/TopSearch.php index d4330c9c8c..c3c2df1ec9 100644 --- a/clients/algoliasearch-client-php/lib/Model/Analytics/TopSearch.php +++ b/clients/algoliasearch-client-php/lib/Model/Analytics/TopSearch.php @@ -254,10 +254,8 @@ public function setNbHits($nbHits) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -269,7 +267,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -280,7 +278,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -294,7 +292,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Analytics/TopSearchWithAnalytics.php b/clients/algoliasearch-client-php/lib/Model/Analytics/TopSearchWithAnalytics.php index 0100d84bf6..50c02aac9b 100644 --- a/clients/algoliasearch-client-php/lib/Model/Analytics/TopSearchWithAnalytics.php +++ b/clients/algoliasearch-client-php/lib/Model/Analytics/TopSearchWithAnalytics.php @@ -567,10 +567,8 @@ public function setNbHits($nbHits) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -582,7 +580,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -593,7 +591,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -607,7 +605,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Analytics/TopSearchWithRevenueAnalytics.php b/clients/algoliasearch-client-php/lib/Model/Analytics/TopSearchWithRevenueAnalytics.php index af376c63e2..a8703ed3f7 100644 --- a/clients/algoliasearch-client-php/lib/Model/Analytics/TopSearchWithRevenueAnalytics.php +++ b/clients/algoliasearch-client-php/lib/Model/Analytics/TopSearchWithRevenueAnalytics.php @@ -780,10 +780,8 @@ public function setPurchaseCount($purchaseCount) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -795,7 +793,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -806,7 +804,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -820,7 +818,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Analytics/TopSearchesResponse.php b/clients/algoliasearch-client-php/lib/Model/Analytics/TopSearchesResponse.php index 4526c8a890..cf7a4b9726 100644 --- a/clients/algoliasearch-client-php/lib/Model/Analytics/TopSearchesResponse.php +++ b/clients/algoliasearch-client-php/lib/Model/Analytics/TopSearchesResponse.php @@ -184,10 +184,8 @@ public function setSearches($searches) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -199,7 +197,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -210,7 +208,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -224,7 +222,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Analytics/TopSearchesResponseWithAnalytics.php b/clients/algoliasearch-client-php/lib/Model/Analytics/TopSearchesResponseWithAnalytics.php index aabff049b4..2c9fb86015 100644 --- a/clients/algoliasearch-client-php/lib/Model/Analytics/TopSearchesResponseWithAnalytics.php +++ b/clients/algoliasearch-client-php/lib/Model/Analytics/TopSearchesResponseWithAnalytics.php @@ -184,10 +184,8 @@ public function setSearches($searches) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -199,7 +197,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -210,7 +208,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -224,7 +222,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Analytics/TopSearchesResponseWithRevenueAnalytics.php b/clients/algoliasearch-client-php/lib/Model/Analytics/TopSearchesResponseWithRevenueAnalytics.php index d094f1bf93..c854392b44 100644 --- a/clients/algoliasearch-client-php/lib/Model/Analytics/TopSearchesResponseWithRevenueAnalytics.php +++ b/clients/algoliasearch-client-php/lib/Model/Analytics/TopSearchesResponseWithRevenueAnalytics.php @@ -184,10 +184,8 @@ public function setSearches($searches) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -199,7 +197,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -210,7 +208,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -224,7 +222,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Ingestion/AuthAPIKey.php b/clients/algoliasearch-client-php/lib/Model/Ingestion/AuthAPIKey.php index ecf23464fa..0efd4875b5 100644 --- a/clients/algoliasearch-client-php/lib/Model/Ingestion/AuthAPIKey.php +++ b/clients/algoliasearch-client-php/lib/Model/Ingestion/AuthAPIKey.php @@ -186,10 +186,8 @@ public function setKey($key) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -201,7 +199,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -212,7 +210,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -226,7 +224,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Ingestion/AuthAPIKeyPartial.php b/clients/algoliasearch-client-php/lib/Model/Ingestion/AuthAPIKeyPartial.php index bb86d5c5eb..06dcee1279 100644 --- a/clients/algoliasearch-client-php/lib/Model/Ingestion/AuthAPIKeyPartial.php +++ b/clients/algoliasearch-client-php/lib/Model/Ingestion/AuthAPIKeyPartial.php @@ -180,10 +180,8 @@ public function setKey($key) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -195,7 +193,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -206,7 +204,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -220,7 +218,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Ingestion/AuthAlgolia.php b/clients/algoliasearch-client-php/lib/Model/Ingestion/AuthAlgolia.php index cc5498e746..89e04d5b2a 100644 --- a/clients/algoliasearch-client-php/lib/Model/Ingestion/AuthAlgolia.php +++ b/clients/algoliasearch-client-php/lib/Model/Ingestion/AuthAlgolia.php @@ -221,10 +221,8 @@ public function setApiKey($apiKey) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -236,7 +234,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -247,7 +245,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -261,7 +259,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Ingestion/AuthAlgoliaInsights.php b/clients/algoliasearch-client-php/lib/Model/Ingestion/AuthAlgoliaInsights.php index de05e25e1e..4574719195 100644 --- a/clients/algoliasearch-client-php/lib/Model/Ingestion/AuthAlgoliaInsights.php +++ b/clients/algoliasearch-client-php/lib/Model/Ingestion/AuthAlgoliaInsights.php @@ -221,10 +221,8 @@ public function setApiKey($apiKey) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -236,7 +234,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -247,7 +245,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -261,7 +259,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Ingestion/AuthAlgoliaInsightsPartial.php b/clients/algoliasearch-client-php/lib/Model/Ingestion/AuthAlgoliaInsightsPartial.php index 3dc977392b..6729db87f1 100644 --- a/clients/algoliasearch-client-php/lib/Model/Ingestion/AuthAlgoliaInsightsPartial.php +++ b/clients/algoliasearch-client-php/lib/Model/Ingestion/AuthAlgoliaInsightsPartial.php @@ -212,10 +212,8 @@ public function setApiKey($apiKey) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -227,7 +225,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -238,7 +236,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -252,7 +250,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Ingestion/AuthAlgoliaPartial.php b/clients/algoliasearch-client-php/lib/Model/Ingestion/AuthAlgoliaPartial.php index bea3d5c94a..cd9dc1c9c7 100644 --- a/clients/algoliasearch-client-php/lib/Model/Ingestion/AuthAlgoliaPartial.php +++ b/clients/algoliasearch-client-php/lib/Model/Ingestion/AuthAlgoliaPartial.php @@ -212,10 +212,8 @@ public function setApiKey($apiKey) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -227,7 +225,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -238,7 +236,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -252,7 +250,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Ingestion/AuthBasic.php b/clients/algoliasearch-client-php/lib/Model/Ingestion/AuthBasic.php index 212b926b75..7d992b68a0 100644 --- a/clients/algoliasearch-client-php/lib/Model/Ingestion/AuthBasic.php +++ b/clients/algoliasearch-client-php/lib/Model/Ingestion/AuthBasic.php @@ -221,10 +221,8 @@ public function setPassword($password) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -236,7 +234,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -247,7 +245,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -261,7 +259,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Ingestion/AuthBasicPartial.php b/clients/algoliasearch-client-php/lib/Model/Ingestion/AuthBasicPartial.php index 15abdd93a0..25ea00d996 100644 --- a/clients/algoliasearch-client-php/lib/Model/Ingestion/AuthBasicPartial.php +++ b/clients/algoliasearch-client-php/lib/Model/Ingestion/AuthBasicPartial.php @@ -212,10 +212,8 @@ public function setPassword($password) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -227,7 +225,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -238,7 +236,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -252,7 +250,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Ingestion/AuthGoogleServiceAccount.php b/clients/algoliasearch-client-php/lib/Model/Ingestion/AuthGoogleServiceAccount.php index a7deffe8b7..55e0c5bb4d 100644 --- a/clients/algoliasearch-client-php/lib/Model/Ingestion/AuthGoogleServiceAccount.php +++ b/clients/algoliasearch-client-php/lib/Model/Ingestion/AuthGoogleServiceAccount.php @@ -221,10 +221,8 @@ public function setPrivateKey($privateKey) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -236,7 +234,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -247,7 +245,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -261,7 +259,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Ingestion/AuthGoogleServiceAccountPartial.php b/clients/algoliasearch-client-php/lib/Model/Ingestion/AuthGoogleServiceAccountPartial.php index f28cec0e91..d60bf80a89 100644 --- a/clients/algoliasearch-client-php/lib/Model/Ingestion/AuthGoogleServiceAccountPartial.php +++ b/clients/algoliasearch-client-php/lib/Model/Ingestion/AuthGoogleServiceAccountPartial.php @@ -212,10 +212,8 @@ public function setPrivateKey($privateKey) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -227,7 +225,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -238,7 +236,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -252,7 +250,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Ingestion/AuthInput.php b/clients/algoliasearch-client-php/lib/Model/Ingestion/AuthInput.php index 568c5b9216..9e3ddaed9b 100644 --- a/clients/algoliasearch-client-php/lib/Model/Ingestion/AuthInput.php +++ b/clients/algoliasearch-client-php/lib/Model/Ingestion/AuthInput.php @@ -531,10 +531,8 @@ public function setApiKey($apiKey) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -546,7 +544,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -557,7 +555,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -571,7 +569,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Ingestion/AuthInputPartial.php b/clients/algoliasearch-client-php/lib/Model/Ingestion/AuthInputPartial.php index a400ec0621..89b4426292 100644 --- a/clients/algoliasearch-client-php/lib/Model/Ingestion/AuthInputPartial.php +++ b/clients/algoliasearch-client-php/lib/Model/Ingestion/AuthInputPartial.php @@ -498,10 +498,8 @@ public function setApiKey($apiKey) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -513,7 +511,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -524,7 +522,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -538,7 +536,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Ingestion/AuthOAuth.php b/clients/algoliasearch-client-php/lib/Model/Ingestion/AuthOAuth.php index 3ef6d7a121..e1f514534a 100644 --- a/clients/algoliasearch-client-php/lib/Model/Ingestion/AuthOAuth.php +++ b/clients/algoliasearch-client-php/lib/Model/Ingestion/AuthOAuth.php @@ -288,10 +288,8 @@ public function setScope($scope) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -303,7 +301,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -314,7 +312,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -328,7 +326,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Ingestion/AuthOAuthPartial.php b/clients/algoliasearch-client-php/lib/Model/Ingestion/AuthOAuthPartial.php index 08bb95c01c..2197f0b7c2 100644 --- a/clients/algoliasearch-client-php/lib/Model/Ingestion/AuthOAuthPartial.php +++ b/clients/algoliasearch-client-php/lib/Model/Ingestion/AuthOAuthPartial.php @@ -276,10 +276,8 @@ public function setScope($scope) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -291,7 +289,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -302,7 +300,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -316,7 +314,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Ingestion/Authentication.php b/clients/algoliasearch-client-php/lib/Model/Ingestion/Authentication.php index 293f211e89..be9145f3c0 100644 --- a/clients/algoliasearch-client-php/lib/Model/Ingestion/Authentication.php +++ b/clients/algoliasearch-client-php/lib/Model/Ingestion/Authentication.php @@ -390,10 +390,8 @@ public function setUpdatedAt($updatedAt) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -405,7 +403,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -416,7 +414,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -430,7 +428,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Ingestion/AuthenticationCreate.php b/clients/algoliasearch-client-php/lib/Model/Ingestion/AuthenticationCreate.php index d01dd4573c..d1159ece06 100644 --- a/clients/algoliasearch-client-php/lib/Model/Ingestion/AuthenticationCreate.php +++ b/clients/algoliasearch-client-php/lib/Model/Ingestion/AuthenticationCreate.php @@ -288,10 +288,8 @@ public function setInput($input) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -303,7 +301,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -314,7 +312,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -328,7 +326,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Ingestion/AuthenticationCreateResponse.php b/clients/algoliasearch-client-php/lib/Model/Ingestion/AuthenticationCreateResponse.php index ab8a4cb7c2..ee65c17767 100644 --- a/clients/algoliasearch-client-php/lib/Model/Ingestion/AuthenticationCreateResponse.php +++ b/clients/algoliasearch-client-php/lib/Model/Ingestion/AuthenticationCreateResponse.php @@ -256,10 +256,8 @@ public function setCreatedAt($createdAt) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -271,7 +269,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -282,7 +280,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -296,7 +294,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Ingestion/AuthenticationSearch.php b/clients/algoliasearch-client-php/lib/Model/Ingestion/AuthenticationSearch.php index 679745c3cd..1916726144 100644 --- a/clients/algoliasearch-client-php/lib/Model/Ingestion/AuthenticationSearch.php +++ b/clients/algoliasearch-client-php/lib/Model/Ingestion/AuthenticationSearch.php @@ -186,10 +186,8 @@ public function setAuthenticationIDs($authenticationIDs) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -201,7 +199,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -212,7 +210,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -226,7 +224,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Ingestion/AuthenticationUpdate.php b/clients/algoliasearch-client-php/lib/Model/Ingestion/AuthenticationUpdate.php index 3abafb001c..ce1ee0365e 100644 --- a/clients/algoliasearch-client-php/lib/Model/Ingestion/AuthenticationUpdate.php +++ b/clients/algoliasearch-client-php/lib/Model/Ingestion/AuthenticationUpdate.php @@ -276,10 +276,8 @@ public function setInput($input) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -291,7 +289,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -302,7 +300,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -316,7 +314,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Ingestion/AuthenticationUpdateResponse.php b/clients/algoliasearch-client-php/lib/Model/Ingestion/AuthenticationUpdateResponse.php index d488d4d0e0..900aa1b217 100644 --- a/clients/algoliasearch-client-php/lib/Model/Ingestion/AuthenticationUpdateResponse.php +++ b/clients/algoliasearch-client-php/lib/Model/Ingestion/AuthenticationUpdateResponse.php @@ -256,10 +256,8 @@ public function setUpdatedAt($updatedAt) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -271,7 +269,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -282,7 +280,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -296,7 +294,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Ingestion/BatchRequest.php b/clients/algoliasearch-client-php/lib/Model/Ingestion/BatchRequest.php index dec801ed65..718d0a755e 100644 --- a/clients/algoliasearch-client-php/lib/Model/Ingestion/BatchRequest.php +++ b/clients/algoliasearch-client-php/lib/Model/Ingestion/BatchRequest.php @@ -219,10 +219,8 @@ public function setBody($body) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -234,7 +232,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -245,7 +243,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -259,7 +257,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Ingestion/BatchWriteParams.php b/clients/algoliasearch-client-php/lib/Model/Ingestion/BatchWriteParams.php index aa078b05e5..8341d9d4a1 100644 --- a/clients/algoliasearch-client-php/lib/Model/Ingestion/BatchWriteParams.php +++ b/clients/algoliasearch-client-php/lib/Model/Ingestion/BatchWriteParams.php @@ -186,10 +186,8 @@ public function setRequests($requests) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -201,7 +199,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -212,7 +210,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -226,7 +224,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Ingestion/BigCommerceChannel.php b/clients/algoliasearch-client-php/lib/Model/Ingestion/BigCommerceChannel.php index 3ea3febba9..9ef82ae8aa 100644 --- a/clients/algoliasearch-client-php/lib/Model/Ingestion/BigCommerceChannel.php +++ b/clients/algoliasearch-client-php/lib/Model/Ingestion/BigCommerceChannel.php @@ -216,10 +216,8 @@ public function setCurrencies($currencies) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -231,7 +229,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -242,7 +240,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -256,7 +254,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Ingestion/BigCommerceMetafield.php b/clients/algoliasearch-client-php/lib/Model/Ingestion/BigCommerceMetafield.php index cb04038099..8f8ecb4b33 100644 --- a/clients/algoliasearch-client-php/lib/Model/Ingestion/BigCommerceMetafield.php +++ b/clients/algoliasearch-client-php/lib/Model/Ingestion/BigCommerceMetafield.php @@ -219,10 +219,8 @@ public function setKey($key) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -234,7 +232,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -245,7 +243,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -259,7 +257,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Ingestion/CommercetoolsCustomFields.php b/clients/algoliasearch-client-php/lib/Model/Ingestion/CommercetoolsCustomFields.php index 0de05e8680..0785256c85 100644 --- a/clients/algoliasearch-client-php/lib/Model/Ingestion/CommercetoolsCustomFields.php +++ b/clients/algoliasearch-client-php/lib/Model/Ingestion/CommercetoolsCustomFields.php @@ -244,10 +244,8 @@ public function setCategory($category) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -259,7 +257,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -270,7 +268,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -284,7 +282,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Ingestion/DeleteResponse.php b/clients/algoliasearch-client-php/lib/Model/Ingestion/DeleteResponse.php index 318deaef91..c48fbabe40 100644 --- a/clients/algoliasearch-client-php/lib/Model/Ingestion/DeleteResponse.php +++ b/clients/algoliasearch-client-php/lib/Model/Ingestion/DeleteResponse.php @@ -184,10 +184,8 @@ public function setDeletedAt($deletedAt) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -199,7 +197,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -210,7 +208,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -224,7 +222,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Ingestion/Destination.php b/clients/algoliasearch-client-php/lib/Model/Ingestion/Destination.php index 331097b1c2..430eb2ec69 100644 --- a/clients/algoliasearch-client-php/lib/Model/Ingestion/Destination.php +++ b/clients/algoliasearch-client-php/lib/Model/Ingestion/Destination.php @@ -422,10 +422,8 @@ public function setTransformationIDs($transformationIDs) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -437,7 +435,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -448,7 +446,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -462,7 +460,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Ingestion/DestinationCreate.php b/clients/algoliasearch-client-php/lib/Model/Ingestion/DestinationCreate.php index 71ba9bb5a6..2fddb6a31c 100644 --- a/clients/algoliasearch-client-php/lib/Model/Ingestion/DestinationCreate.php +++ b/clients/algoliasearch-client-php/lib/Model/Ingestion/DestinationCreate.php @@ -320,10 +320,8 @@ public function setTransformationIDs($transformationIDs) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -335,7 +333,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -346,7 +344,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -360,7 +358,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Ingestion/DestinationCreateResponse.php b/clients/algoliasearch-client-php/lib/Model/Ingestion/DestinationCreateResponse.php index e9bc50af9f..36713c79cc 100644 --- a/clients/algoliasearch-client-php/lib/Model/Ingestion/DestinationCreateResponse.php +++ b/clients/algoliasearch-client-php/lib/Model/Ingestion/DestinationCreateResponse.php @@ -256,10 +256,8 @@ public function setCreatedAt($createdAt) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -271,7 +269,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -282,7 +280,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -296,7 +294,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Ingestion/DestinationIndexName.php b/clients/algoliasearch-client-php/lib/Model/Ingestion/DestinationIndexName.php index 2f5b1e6a78..80e747e944 100644 --- a/clients/algoliasearch-client-php/lib/Model/Ingestion/DestinationIndexName.php +++ b/clients/algoliasearch-client-php/lib/Model/Ingestion/DestinationIndexName.php @@ -248,10 +248,8 @@ public function setAttributesToExclude($attributesToExclude) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -263,7 +261,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -274,7 +272,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -288,7 +286,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Ingestion/DestinationInput.php b/clients/algoliasearch-client-php/lib/Model/Ingestion/DestinationInput.php index bf08979e95..aac86f91d5 100644 --- a/clients/algoliasearch-client-php/lib/Model/Ingestion/DestinationInput.php +++ b/clients/algoliasearch-client-php/lib/Model/Ingestion/DestinationInput.php @@ -248,10 +248,8 @@ public function setAttributesToExclude($attributesToExclude) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -263,7 +261,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -274,7 +272,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -288,7 +286,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Ingestion/DestinationSearch.php b/clients/algoliasearch-client-php/lib/Model/Ingestion/DestinationSearch.php index 3c886f457c..5f1e6288e4 100644 --- a/clients/algoliasearch-client-php/lib/Model/Ingestion/DestinationSearch.php +++ b/clients/algoliasearch-client-php/lib/Model/Ingestion/DestinationSearch.php @@ -186,10 +186,8 @@ public function setDestinationIDs($destinationIDs) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -201,7 +199,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -212,7 +210,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -226,7 +224,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Ingestion/DestinationUpdate.php b/clients/algoliasearch-client-php/lib/Model/Ingestion/DestinationUpdate.php index 5f8684a566..5266f696d1 100644 --- a/clients/algoliasearch-client-php/lib/Model/Ingestion/DestinationUpdate.php +++ b/clients/algoliasearch-client-php/lib/Model/Ingestion/DestinationUpdate.php @@ -308,10 +308,8 @@ public function setTransformationIDs($transformationIDs) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -323,7 +321,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -334,7 +332,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -348,7 +346,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Ingestion/DestinationUpdateResponse.php b/clients/algoliasearch-client-php/lib/Model/Ingestion/DestinationUpdateResponse.php index e67028aa3d..48b791f68a 100644 --- a/clients/algoliasearch-client-php/lib/Model/Ingestion/DestinationUpdateResponse.php +++ b/clients/algoliasearch-client-php/lib/Model/Ingestion/DestinationUpdateResponse.php @@ -256,10 +256,8 @@ public function setUpdatedAt($updatedAt) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -271,7 +269,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -282,7 +280,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -296,7 +294,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Ingestion/DockerStreams.php b/clients/algoliasearch-client-php/lib/Model/Ingestion/DockerStreams.php index 5c3e4295bc..ddb3fe7ff6 100644 --- a/clients/algoliasearch-client-php/lib/Model/Ingestion/DockerStreams.php +++ b/clients/algoliasearch-client-php/lib/Model/Ingestion/DockerStreams.php @@ -251,10 +251,8 @@ public function setSyncMode($syncMode) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -266,7 +264,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -277,7 +275,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -291,7 +289,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Ingestion/DockerStreamsInput.php b/clients/algoliasearch-client-php/lib/Model/Ingestion/DockerStreamsInput.php index 92ff3e2d91..77c2e173bd 100644 --- a/clients/algoliasearch-client-php/lib/Model/Ingestion/DockerStreamsInput.php +++ b/clients/algoliasearch-client-php/lib/Model/Ingestion/DockerStreamsInput.php @@ -186,10 +186,8 @@ public function setStreams($streams) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -201,7 +199,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -212,7 +210,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -226,7 +224,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Ingestion/Event.php b/clients/algoliasearch-client-php/lib/Model/Ingestion/Event.php index dd34b987ad..103c623500 100644 --- a/clients/algoliasearch-client-php/lib/Model/Ingestion/Event.php +++ b/clients/algoliasearch-client-php/lib/Model/Ingestion/Event.php @@ -433,10 +433,8 @@ public function setPublishedAt($publishedAt) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -448,7 +446,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -459,7 +457,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -473,7 +471,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Ingestion/GenerateTransformationCodePayload.php b/clients/algoliasearch-client-php/lib/Model/Ingestion/GenerateTransformationCodePayload.php index e72893acff..74bab89d7e 100644 --- a/clients/algoliasearch-client-php/lib/Model/Ingestion/GenerateTransformationCodePayload.php +++ b/clients/algoliasearch-client-php/lib/Model/Ingestion/GenerateTransformationCodePayload.php @@ -251,10 +251,8 @@ public function setUserPrompt($userPrompt) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -266,7 +264,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -277,7 +275,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -291,7 +289,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Ingestion/GenerateTransformationCodeResponse.php b/clients/algoliasearch-client-php/lib/Model/Ingestion/GenerateTransformationCodeResponse.php index a4d8f8d1df..cdf0bf5734 100644 --- a/clients/algoliasearch-client-php/lib/Model/Ingestion/GenerateTransformationCodeResponse.php +++ b/clients/algoliasearch-client-php/lib/Model/Ingestion/GenerateTransformationCodeResponse.php @@ -178,10 +178,8 @@ public function setGeneratedCode($generatedCode) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -193,7 +191,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -204,7 +202,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -218,7 +216,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Ingestion/ListAuthenticationsResponse.php b/clients/algoliasearch-client-php/lib/Model/Ingestion/ListAuthenticationsResponse.php index 9f6de641e8..25e86c6edc 100644 --- a/clients/algoliasearch-client-php/lib/Model/Ingestion/ListAuthenticationsResponse.php +++ b/clients/algoliasearch-client-php/lib/Model/Ingestion/ListAuthenticationsResponse.php @@ -219,10 +219,8 @@ public function setPagination($pagination) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -234,7 +232,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -245,7 +243,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -259,7 +257,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Ingestion/ListDestinationsResponse.php b/clients/algoliasearch-client-php/lib/Model/Ingestion/ListDestinationsResponse.php index e11f2b0bdc..838be655ae 100644 --- a/clients/algoliasearch-client-php/lib/Model/Ingestion/ListDestinationsResponse.php +++ b/clients/algoliasearch-client-php/lib/Model/Ingestion/ListDestinationsResponse.php @@ -219,10 +219,8 @@ public function setPagination($pagination) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -234,7 +232,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -245,7 +243,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -259,7 +257,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Ingestion/ListEventsResponse.php b/clients/algoliasearch-client-php/lib/Model/Ingestion/ListEventsResponse.php index d9f5496577..b164844ba2 100644 --- a/clients/algoliasearch-client-php/lib/Model/Ingestion/ListEventsResponse.php +++ b/clients/algoliasearch-client-php/lib/Model/Ingestion/ListEventsResponse.php @@ -254,10 +254,8 @@ public function setWindow($window) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -269,7 +267,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -280,7 +278,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -294,7 +292,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Ingestion/ListSourcesResponse.php b/clients/algoliasearch-client-php/lib/Model/Ingestion/ListSourcesResponse.php index 1dd89017e5..3baf0e8865 100644 --- a/clients/algoliasearch-client-php/lib/Model/Ingestion/ListSourcesResponse.php +++ b/clients/algoliasearch-client-php/lib/Model/Ingestion/ListSourcesResponse.php @@ -219,10 +219,8 @@ public function setPagination($pagination) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -234,7 +232,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -245,7 +243,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -259,7 +257,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Ingestion/ListTasksResponse.php b/clients/algoliasearch-client-php/lib/Model/Ingestion/ListTasksResponse.php index 012fb60297..9434d51ec8 100644 --- a/clients/algoliasearch-client-php/lib/Model/Ingestion/ListTasksResponse.php +++ b/clients/algoliasearch-client-php/lib/Model/Ingestion/ListTasksResponse.php @@ -221,10 +221,8 @@ public function setPagination($pagination) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -236,7 +234,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -247,7 +245,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -261,7 +259,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Ingestion/ListTasksResponseV1.php b/clients/algoliasearch-client-php/lib/Model/Ingestion/ListTasksResponseV1.php index 395b9479b0..c57ebaad20 100644 --- a/clients/algoliasearch-client-php/lib/Model/Ingestion/ListTasksResponseV1.php +++ b/clients/algoliasearch-client-php/lib/Model/Ingestion/ListTasksResponseV1.php @@ -221,10 +221,8 @@ public function setPagination($pagination) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -236,7 +234,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -247,7 +245,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -261,7 +259,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Ingestion/ListTransformationsResponse.php b/clients/algoliasearch-client-php/lib/Model/Ingestion/ListTransformationsResponse.php index 5d4619d82d..0d9f30d63e 100644 --- a/clients/algoliasearch-client-php/lib/Model/Ingestion/ListTransformationsResponse.php +++ b/clients/algoliasearch-client-php/lib/Model/Ingestion/ListTransformationsResponse.php @@ -221,10 +221,8 @@ public function setPagination($pagination) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -236,7 +234,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -247,7 +245,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -261,7 +259,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Ingestion/MappingFieldDirective.php b/clients/algoliasearch-client-php/lib/Model/Ingestion/MappingFieldDirective.php index f64cfece59..2087c8e2fa 100644 --- a/clients/algoliasearch-client-php/lib/Model/Ingestion/MappingFieldDirective.php +++ b/clients/algoliasearch-client-php/lib/Model/Ingestion/MappingFieldDirective.php @@ -221,10 +221,8 @@ public function setValue($value) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -236,7 +234,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -247,7 +245,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -261,7 +259,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Ingestion/MappingInput.php b/clients/algoliasearch-client-php/lib/Model/Ingestion/MappingInput.php index 2a6d8149e7..31ba844620 100644 --- a/clients/algoliasearch-client-php/lib/Model/Ingestion/MappingInput.php +++ b/clients/algoliasearch-client-php/lib/Model/Ingestion/MappingInput.php @@ -221,10 +221,8 @@ public function setActions($actions) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -236,7 +234,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -247,7 +245,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -261,7 +259,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Ingestion/MappingKitAction.php b/clients/algoliasearch-client-php/lib/Model/Ingestion/MappingKitAction.php index 48a50a9999..076a3d7251 100644 --- a/clients/algoliasearch-client-php/lib/Model/Ingestion/MappingKitAction.php +++ b/clients/algoliasearch-client-php/lib/Model/Ingestion/MappingKitAction.php @@ -288,10 +288,8 @@ public function setFieldDirectives($fieldDirectives) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -303,7 +301,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -314,7 +312,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -328,7 +326,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Ingestion/Model.php b/clients/algoliasearch-client-php/lib/Model/Ingestion/Model.php index 9ec17fe8ec..b9e0a18c09 100644 --- a/clients/algoliasearch-client-php/lib/Model/Ingestion/Model.php +++ b/clients/algoliasearch-client-php/lib/Model/Ingestion/Model.php @@ -324,10 +324,8 @@ public function setProvider($provider) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -339,7 +337,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -350,7 +348,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -364,7 +362,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Ingestion/OnDemandTrigger.php b/clients/algoliasearch-client-php/lib/Model/Ingestion/OnDemandTrigger.php index 0c2b089b81..bd13ae33fa 100644 --- a/clients/algoliasearch-client-php/lib/Model/Ingestion/OnDemandTrigger.php +++ b/clients/algoliasearch-client-php/lib/Model/Ingestion/OnDemandTrigger.php @@ -218,10 +218,8 @@ public function setLastRun($lastRun) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -233,7 +231,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -244,7 +242,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -258,7 +256,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Ingestion/OnDemandTriggerInput.php b/clients/algoliasearch-client-php/lib/Model/Ingestion/OnDemandTriggerInput.php index 03dff0d89c..0fb7081873 100644 --- a/clients/algoliasearch-client-php/lib/Model/Ingestion/OnDemandTriggerInput.php +++ b/clients/algoliasearch-client-php/lib/Model/Ingestion/OnDemandTriggerInput.php @@ -186,10 +186,8 @@ public function setType($type) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -201,7 +199,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -212,7 +210,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -226,7 +224,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Ingestion/Pagination.php b/clients/algoliasearch-client-php/lib/Model/Ingestion/Pagination.php index bf39e3fbc4..7597ce377c 100644 --- a/clients/algoliasearch-client-php/lib/Model/Ingestion/Pagination.php +++ b/clients/algoliasearch-client-php/lib/Model/Ingestion/Pagination.php @@ -329,10 +329,8 @@ public function setItemsPerPage($itemsPerPage) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -344,7 +342,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -355,7 +353,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -369,7 +367,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Ingestion/Run.php b/clients/algoliasearch-client-php/lib/Model/Ingestion/Run.php index 85977dde73..4e460840cf 100644 --- a/clients/algoliasearch-client-php/lib/Model/Ingestion/Run.php +++ b/clients/algoliasearch-client-php/lib/Model/Ingestion/Run.php @@ -598,10 +598,8 @@ public function setFinishedAt($finishedAt) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -613,7 +611,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -624,7 +622,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -638,7 +636,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Ingestion/RunListResponse.php b/clients/algoliasearch-client-php/lib/Model/Ingestion/RunListResponse.php index b5a5a67658..e97ff6b309 100644 --- a/clients/algoliasearch-client-php/lib/Model/Ingestion/RunListResponse.php +++ b/clients/algoliasearch-client-php/lib/Model/Ingestion/RunListResponse.php @@ -254,10 +254,8 @@ public function setWindow($window) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -269,7 +267,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -280,7 +278,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -294,7 +292,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Ingestion/RunProgress.php b/clients/algoliasearch-client-php/lib/Model/Ingestion/RunProgress.php index 7d52bbb9d2..5f6e610bab 100644 --- a/clients/algoliasearch-client-php/lib/Model/Ingestion/RunProgress.php +++ b/clients/algoliasearch-client-php/lib/Model/Ingestion/RunProgress.php @@ -210,10 +210,8 @@ public function setReceivedNbOfEvents($receivedNbOfEvents) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -225,7 +223,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -236,7 +234,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -250,7 +248,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Ingestion/RunResponse.php b/clients/algoliasearch-client-php/lib/Model/Ingestion/RunResponse.php index 4cf27f8faa..32fa2246a7 100644 --- a/clients/algoliasearch-client-php/lib/Model/Ingestion/RunResponse.php +++ b/clients/algoliasearch-client-php/lib/Model/Ingestion/RunResponse.php @@ -221,10 +221,8 @@ public function setCreatedAt($createdAt) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -236,7 +234,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -247,7 +245,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -261,7 +259,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Ingestion/RunSourcePayload.php b/clients/algoliasearch-client-php/lib/Model/Ingestion/RunSourcePayload.php index 74e4a866c7..2dd85ef41c 100644 --- a/clients/algoliasearch-client-php/lib/Model/Ingestion/RunSourcePayload.php +++ b/clients/algoliasearch-client-php/lib/Model/Ingestion/RunSourcePayload.php @@ -274,10 +274,8 @@ public function setEntityType($entityType) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -289,7 +287,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -300,7 +298,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -314,7 +312,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Ingestion/RunSourceResponse.php b/clients/algoliasearch-client-php/lib/Model/Ingestion/RunSourceResponse.php index a51c609219..9883647a95 100644 --- a/clients/algoliasearch-client-php/lib/Model/Ingestion/RunSourceResponse.php +++ b/clients/algoliasearch-client-php/lib/Model/Ingestion/RunSourceResponse.php @@ -219,10 +219,8 @@ public function setCreatedAt($createdAt) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -234,7 +232,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -245,7 +243,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -259,7 +257,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Ingestion/ScheduleTrigger.php b/clients/algoliasearch-client-php/lib/Model/Ingestion/ScheduleTrigger.php index 3e871b5b9a..b64de0ab63 100644 --- a/clients/algoliasearch-client-php/lib/Model/Ingestion/ScheduleTrigger.php +++ b/clients/algoliasearch-client-php/lib/Model/Ingestion/ScheduleTrigger.php @@ -288,10 +288,8 @@ public function setNextRun($nextRun) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -303,7 +301,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -314,7 +312,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -328,7 +326,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Ingestion/ScheduleTriggerInput.php b/clients/algoliasearch-client-php/lib/Model/Ingestion/ScheduleTriggerInput.php index b2c0db92f2..3af8fb1bcf 100644 --- a/clients/algoliasearch-client-php/lib/Model/Ingestion/ScheduleTriggerInput.php +++ b/clients/algoliasearch-client-php/lib/Model/Ingestion/ScheduleTriggerInput.php @@ -221,10 +221,8 @@ public function setCron($cron) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -236,7 +234,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -247,7 +245,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -261,7 +259,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Ingestion/ShopifyInput.php b/clients/algoliasearch-client-php/lib/Model/Ingestion/ShopifyInput.php index 3fcad6b000..b3014f28c9 100644 --- a/clients/algoliasearch-client-php/lib/Model/Ingestion/ShopifyInput.php +++ b/clients/algoliasearch-client-php/lib/Model/Ingestion/ShopifyInput.php @@ -221,10 +221,8 @@ public function setMarket($market) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -236,7 +234,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -247,7 +245,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -261,7 +259,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Ingestion/ShopifyMarket.php b/clients/algoliasearch-client-php/lib/Model/Ingestion/ShopifyMarket.php index 283fbcc4f2..de582dd707 100644 --- a/clients/algoliasearch-client-php/lib/Model/Ingestion/ShopifyMarket.php +++ b/clients/algoliasearch-client-php/lib/Model/Ingestion/ShopifyMarket.php @@ -256,10 +256,8 @@ public function setLocales($locales) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -271,7 +269,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -282,7 +280,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -296,7 +294,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Ingestion/ShopifyMetafield.php b/clients/algoliasearch-client-php/lib/Model/Ingestion/ShopifyMetafield.php index f34210621e..82578b232f 100644 --- a/clients/algoliasearch-client-php/lib/Model/Ingestion/ShopifyMetafield.php +++ b/clients/algoliasearch-client-php/lib/Model/Ingestion/ShopifyMetafield.php @@ -256,10 +256,8 @@ public function setValue($value) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -271,7 +269,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -282,7 +280,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -296,7 +294,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Ingestion/Source.php b/clients/algoliasearch-client-php/lib/Model/Ingestion/Source.php index 8c5c1caec5..b0fc0a7f62 100644 --- a/clients/algoliasearch-client-php/lib/Model/Ingestion/Source.php +++ b/clients/algoliasearch-client-php/lib/Model/Ingestion/Source.php @@ -388,10 +388,8 @@ public function setUpdatedAt($updatedAt) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -403,7 +401,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -414,7 +412,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -428,7 +426,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Ingestion/SourceBigCommerce.php b/clients/algoliasearch-client-php/lib/Model/Ingestion/SourceBigCommerce.php index 023fc21d63..549ac1f6a7 100644 --- a/clients/algoliasearch-client-php/lib/Model/Ingestion/SourceBigCommerce.php +++ b/clients/algoliasearch-client-php/lib/Model/Ingestion/SourceBigCommerce.php @@ -312,10 +312,8 @@ public function setVariantMetafields($variantMetafields) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -327,7 +325,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -338,7 +336,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -352,7 +350,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Ingestion/SourceBigQuery.php b/clients/algoliasearch-client-php/lib/Model/Ingestion/SourceBigQuery.php index 2fb6cfb86d..077b1642fd 100644 --- a/clients/algoliasearch-client-php/lib/Model/Ingestion/SourceBigQuery.php +++ b/clients/algoliasearch-client-php/lib/Model/Ingestion/SourceBigQuery.php @@ -379,10 +379,8 @@ public function setUniqueIDColumn($uniqueIDColumn) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -394,7 +392,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -405,7 +403,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -419,7 +417,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Ingestion/SourceCSV.php b/clients/algoliasearch-client-php/lib/Model/Ingestion/SourceCSV.php index 2f32f84808..27037e9fc4 100644 --- a/clients/algoliasearch-client-php/lib/Model/Ingestion/SourceCSV.php +++ b/clients/algoliasearch-client-php/lib/Model/Ingestion/SourceCSV.php @@ -326,10 +326,8 @@ public function setDelimiter($delimiter) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -341,7 +339,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -352,7 +350,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -366,7 +364,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Ingestion/SourceCommercetools.php b/clients/algoliasearch-client-php/lib/Model/Ingestion/SourceCommercetools.php index 0f0ac13bf5..e6de66f6a0 100644 --- a/clients/algoliasearch-client-php/lib/Model/Ingestion/SourceCommercetools.php +++ b/clients/algoliasearch-client-php/lib/Model/Ingestion/SourceCommercetools.php @@ -347,10 +347,8 @@ public function setCustomFields($customFields) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -362,7 +360,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -373,7 +371,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -387,7 +385,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Ingestion/SourceCreate.php b/clients/algoliasearch-client-php/lib/Model/Ingestion/SourceCreate.php index cbe80ff5ad..a0faf65029 100644 --- a/clients/algoliasearch-client-php/lib/Model/Ingestion/SourceCreate.php +++ b/clients/algoliasearch-client-php/lib/Model/Ingestion/SourceCreate.php @@ -286,10 +286,8 @@ public function setAuthenticationID($authenticationID) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -301,7 +299,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -312,7 +310,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -326,7 +324,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Ingestion/SourceCreateResponse.php b/clients/algoliasearch-client-php/lib/Model/Ingestion/SourceCreateResponse.php index 05340e6555..b7d253ebe2 100644 --- a/clients/algoliasearch-client-php/lib/Model/Ingestion/SourceCreateResponse.php +++ b/clients/algoliasearch-client-php/lib/Model/Ingestion/SourceCreateResponse.php @@ -254,10 +254,8 @@ public function setCreatedAt($createdAt) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -269,7 +267,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -280,7 +278,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -294,7 +292,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Ingestion/SourceDocker.php b/clients/algoliasearch-client-php/lib/Model/Ingestion/SourceDocker.php index a84eb7e775..b1b70c43d2 100644 --- a/clients/algoliasearch-client-php/lib/Model/Ingestion/SourceDocker.php +++ b/clients/algoliasearch-client-php/lib/Model/Ingestion/SourceDocker.php @@ -321,10 +321,8 @@ public function setConfiguration($configuration) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -336,7 +334,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -347,7 +345,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -361,7 +359,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Ingestion/SourceGA4BigQueryExport.php b/clients/algoliasearch-client-php/lib/Model/Ingestion/SourceGA4BigQueryExport.php index 51a9749c2b..f6e217e850 100644 --- a/clients/algoliasearch-client-php/lib/Model/Ingestion/SourceGA4BigQueryExport.php +++ b/clients/algoliasearch-client-php/lib/Model/Ingestion/SourceGA4BigQueryExport.php @@ -254,10 +254,8 @@ public function setTablePrefix($tablePrefix) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -269,7 +267,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -280,7 +278,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -294,7 +292,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Ingestion/SourceInput.php b/clients/algoliasearch-client-php/lib/Model/Ingestion/SourceInput.php index 21d081253e..66e66c1613 100644 --- a/clients/algoliasearch-client-php/lib/Model/Ingestion/SourceInput.php +++ b/clients/algoliasearch-client-php/lib/Model/Ingestion/SourceInput.php @@ -1061,10 +1061,8 @@ public function setShopURL($shopURL) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -1076,7 +1074,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -1087,7 +1085,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -1101,7 +1099,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Ingestion/SourceJSON.php b/clients/algoliasearch-client-php/lib/Model/Ingestion/SourceJSON.php index 936cbb06cd..7c3cf58c7e 100644 --- a/clients/algoliasearch-client-php/lib/Model/Ingestion/SourceJSON.php +++ b/clients/algoliasearch-client-php/lib/Model/Ingestion/SourceJSON.php @@ -248,10 +248,8 @@ public function setMethod($method) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -263,7 +261,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -274,7 +272,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -288,7 +286,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Ingestion/SourceSearch.php b/clients/algoliasearch-client-php/lib/Model/Ingestion/SourceSearch.php index 9a7702b1a4..32bd3bda46 100644 --- a/clients/algoliasearch-client-php/lib/Model/Ingestion/SourceSearch.php +++ b/clients/algoliasearch-client-php/lib/Model/Ingestion/SourceSearch.php @@ -184,10 +184,8 @@ public function setSourceIDs($sourceIDs) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -199,7 +197,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -210,7 +208,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -224,7 +222,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Ingestion/SourceShopify.php b/clients/algoliasearch-client-php/lib/Model/Ingestion/SourceShopify.php index 6d1a1b610a..62aea62531 100644 --- a/clients/algoliasearch-client-php/lib/Model/Ingestion/SourceShopify.php +++ b/clients/algoliasearch-client-php/lib/Model/Ingestion/SourceShopify.php @@ -216,10 +216,8 @@ public function setShopURL($shopURL) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -231,7 +229,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -242,7 +240,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -256,7 +254,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Ingestion/SourceUpdate.php b/clients/algoliasearch-client-php/lib/Model/Ingestion/SourceUpdate.php index 4016b60c52..18dea9f039 100644 --- a/clients/algoliasearch-client-php/lib/Model/Ingestion/SourceUpdate.php +++ b/clients/algoliasearch-client-php/lib/Model/Ingestion/SourceUpdate.php @@ -242,10 +242,8 @@ public function setAuthenticationID($authenticationID) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -257,7 +255,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -268,7 +266,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -282,7 +280,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Ingestion/SourceUpdateCommercetools.php b/clients/algoliasearch-client-php/lib/Model/Ingestion/SourceUpdateCommercetools.php index 36f033c2ee..e1e7ed4926 100644 --- a/clients/algoliasearch-client-php/lib/Model/Ingestion/SourceUpdateCommercetools.php +++ b/clients/algoliasearch-client-php/lib/Model/Ingestion/SourceUpdateCommercetools.php @@ -306,10 +306,8 @@ public function setCustomFields($customFields) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -321,7 +319,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -332,7 +330,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -346,7 +344,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Ingestion/SourceUpdateDocker.php b/clients/algoliasearch-client-php/lib/Model/Ingestion/SourceUpdateDocker.php index eec7eb6ab8..d669901a55 100644 --- a/clients/algoliasearch-client-php/lib/Model/Ingestion/SourceUpdateDocker.php +++ b/clients/algoliasearch-client-php/lib/Model/Ingestion/SourceUpdateDocker.php @@ -280,10 +280,8 @@ public function setConfiguration($configuration) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -295,7 +293,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -306,7 +304,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -320,7 +318,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Ingestion/SourceUpdateInput.php b/clients/algoliasearch-client-php/lib/Model/Ingestion/SourceUpdateInput.php index a45633b3ca..a1d08b799e 100644 --- a/clients/algoliasearch-client-php/lib/Model/Ingestion/SourceUpdateInput.php +++ b/clients/algoliasearch-client-php/lib/Model/Ingestion/SourceUpdateInput.php @@ -819,10 +819,8 @@ public function setFeatureFlags($featureFlags) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -834,7 +832,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -845,7 +843,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -859,7 +857,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Ingestion/SourceUpdateResponse.php b/clients/algoliasearch-client-php/lib/Model/Ingestion/SourceUpdateResponse.php index ad1724306e..14309e8a34 100644 --- a/clients/algoliasearch-client-php/lib/Model/Ingestion/SourceUpdateResponse.php +++ b/clients/algoliasearch-client-php/lib/Model/Ingestion/SourceUpdateResponse.php @@ -254,10 +254,8 @@ public function setUpdatedAt($updatedAt) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -269,7 +267,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -280,7 +278,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -294,7 +292,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Ingestion/SourceUpdateShopify.php b/clients/algoliasearch-client-php/lib/Model/Ingestion/SourceUpdateShopify.php index a2da5e23e8..6b80e4d887 100644 --- a/clients/algoliasearch-client-php/lib/Model/Ingestion/SourceUpdateShopify.php +++ b/clients/algoliasearch-client-php/lib/Model/Ingestion/SourceUpdateShopify.php @@ -178,10 +178,8 @@ public function setFeatureFlags($featureFlags) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -193,7 +191,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -204,7 +202,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -218,7 +216,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Ingestion/SourceWatchResponse.php b/clients/algoliasearch-client-php/lib/Model/Ingestion/SourceWatchResponse.php index 0ecf3807dd..73d8c7485d 100644 --- a/clients/algoliasearch-client-php/lib/Model/Ingestion/SourceWatchResponse.php +++ b/clients/algoliasearch-client-php/lib/Model/Ingestion/SourceWatchResponse.php @@ -280,10 +280,8 @@ public function setMessage($message) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -295,7 +293,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -306,7 +304,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -320,7 +318,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Ingestion/StreamingInput.php b/clients/algoliasearch-client-php/lib/Model/Ingestion/StreamingInput.php index c518da163c..9d694ed665 100644 --- a/clients/algoliasearch-client-php/lib/Model/Ingestion/StreamingInput.php +++ b/clients/algoliasearch-client-php/lib/Model/Ingestion/StreamingInput.php @@ -186,10 +186,8 @@ public function setMapping($mapping) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -201,7 +199,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -212,7 +210,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -226,7 +224,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Ingestion/StreamingTrigger.php b/clients/algoliasearch-client-php/lib/Model/Ingestion/StreamingTrigger.php index ea420dcfce..9bd8b89775 100644 --- a/clients/algoliasearch-client-php/lib/Model/Ingestion/StreamingTrigger.php +++ b/clients/algoliasearch-client-php/lib/Model/Ingestion/StreamingTrigger.php @@ -186,10 +186,8 @@ public function setType($type) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -201,7 +199,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -212,7 +210,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -226,7 +224,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Ingestion/SubscriptionTrigger.php b/clients/algoliasearch-client-php/lib/Model/Ingestion/SubscriptionTrigger.php index f7e7dce557..f12bf94dab 100644 --- a/clients/algoliasearch-client-php/lib/Model/Ingestion/SubscriptionTrigger.php +++ b/clients/algoliasearch-client-php/lib/Model/Ingestion/SubscriptionTrigger.php @@ -186,10 +186,8 @@ public function setType($type) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -201,7 +199,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -212,7 +210,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -226,7 +224,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Ingestion/Task.php b/clients/algoliasearch-client-php/lib/Model/Ingestion/Task.php index 2156717c94..285bf0c353 100644 --- a/clients/algoliasearch-client-php/lib/Model/Ingestion/Task.php +++ b/clients/algoliasearch-client-php/lib/Model/Ingestion/Task.php @@ -598,10 +598,8 @@ public function setUpdatedAt($updatedAt) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -613,7 +611,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -624,7 +622,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -638,7 +636,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Ingestion/TaskCreate.php b/clients/algoliasearch-client-php/lib/Model/Ingestion/TaskCreate.php index d011a85de4..eacb2d9cbd 100644 --- a/clients/algoliasearch-client-php/lib/Model/Ingestion/TaskCreate.php +++ b/clients/algoliasearch-client-php/lib/Model/Ingestion/TaskCreate.php @@ -430,10 +430,8 @@ public function setCursor($cursor) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -445,7 +443,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -456,7 +454,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -470,7 +468,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Ingestion/TaskCreateResponse.php b/clients/algoliasearch-client-php/lib/Model/Ingestion/TaskCreateResponse.php index 3a6bc1b15f..90db06be20 100644 --- a/clients/algoliasearch-client-php/lib/Model/Ingestion/TaskCreateResponse.php +++ b/clients/algoliasearch-client-php/lib/Model/Ingestion/TaskCreateResponse.php @@ -221,10 +221,8 @@ public function setCreatedAt($createdAt) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -236,7 +234,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -247,7 +245,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -261,7 +259,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Ingestion/TaskCreateTrigger.php b/clients/algoliasearch-client-php/lib/Model/Ingestion/TaskCreateTrigger.php index d135c453d8..99aba7dabd 100644 --- a/clients/algoliasearch-client-php/lib/Model/Ingestion/TaskCreateTrigger.php +++ b/clients/algoliasearch-client-php/lib/Model/Ingestion/TaskCreateTrigger.php @@ -219,10 +219,8 @@ public function setCron($cron) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -234,7 +232,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -245,7 +243,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -259,7 +257,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Ingestion/TaskCreateV1.php b/clients/algoliasearch-client-php/lib/Model/Ingestion/TaskCreateV1.php index 59b9d59296..655e13360c 100644 --- a/clients/algoliasearch-client-php/lib/Model/Ingestion/TaskCreateV1.php +++ b/clients/algoliasearch-client-php/lib/Model/Ingestion/TaskCreateV1.php @@ -433,10 +433,8 @@ public function setCursor($cursor) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -448,7 +446,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -459,7 +457,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -473,7 +471,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Ingestion/TaskInput.php b/clients/algoliasearch-client-php/lib/Model/Ingestion/TaskInput.php index badd55404c..5eeb1462c6 100644 --- a/clients/algoliasearch-client-php/lib/Model/Ingestion/TaskInput.php +++ b/clients/algoliasearch-client-php/lib/Model/Ingestion/TaskInput.php @@ -291,10 +291,8 @@ public function setMarket($market) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -306,7 +304,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -317,7 +315,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -331,7 +329,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Ingestion/TaskSearch.php b/clients/algoliasearch-client-php/lib/Model/Ingestion/TaskSearch.php index 6376d8f040..9e333ef507 100644 --- a/clients/algoliasearch-client-php/lib/Model/Ingestion/TaskSearch.php +++ b/clients/algoliasearch-client-php/lib/Model/Ingestion/TaskSearch.php @@ -184,10 +184,8 @@ public function setTaskIDs($taskIDs) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -199,7 +197,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -210,7 +208,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -224,7 +222,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Ingestion/TaskUpdate.php b/clients/algoliasearch-client-php/lib/Model/Ingestion/TaskUpdate.php index 31051faa72..69957ac7f4 100644 --- a/clients/algoliasearch-client-php/lib/Model/Ingestion/TaskUpdate.php +++ b/clients/algoliasearch-client-php/lib/Model/Ingestion/TaskUpdate.php @@ -325,10 +325,8 @@ public function setFailureThreshold($failureThreshold) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -340,7 +338,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -351,7 +349,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -365,7 +363,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Ingestion/TaskUpdateResponse.php b/clients/algoliasearch-client-php/lib/Model/Ingestion/TaskUpdateResponse.php index a428d602ac..a53e215795 100644 --- a/clients/algoliasearch-client-php/lib/Model/Ingestion/TaskUpdateResponse.php +++ b/clients/algoliasearch-client-php/lib/Model/Ingestion/TaskUpdateResponse.php @@ -221,10 +221,8 @@ public function setUpdatedAt($updatedAt) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -236,7 +234,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -247,7 +245,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -261,7 +259,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Ingestion/TaskUpdateV1.php b/clients/algoliasearch-client-php/lib/Model/Ingestion/TaskUpdateV1.php index 3904473efe..6011cf0dbb 100644 --- a/clients/algoliasearch-client-php/lib/Model/Ingestion/TaskUpdateV1.php +++ b/clients/algoliasearch-client-php/lib/Model/Ingestion/TaskUpdateV1.php @@ -325,10 +325,8 @@ public function setFailureThreshold($failureThreshold) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -340,7 +338,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -351,7 +349,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -365,7 +363,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Ingestion/TaskV1.php b/clients/algoliasearch-client-php/lib/Model/Ingestion/TaskV1.php index ef00a49f05..a69ec30cab 100644 --- a/clients/algoliasearch-client-php/lib/Model/Ingestion/TaskV1.php +++ b/clients/algoliasearch-client-php/lib/Model/Ingestion/TaskV1.php @@ -539,10 +539,8 @@ public function setUpdatedAt($updatedAt) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -554,7 +552,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -565,7 +563,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -579,7 +577,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Ingestion/Transformation.php b/clients/algoliasearch-client-php/lib/Model/Ingestion/Transformation.php index b85e67dec5..8dda128667 100644 --- a/clients/algoliasearch-client-php/lib/Model/Ingestion/Transformation.php +++ b/clients/algoliasearch-client-php/lib/Model/Ingestion/Transformation.php @@ -385,10 +385,8 @@ public function setUpdatedAt($updatedAt) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -400,7 +398,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -411,7 +409,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -425,7 +423,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Ingestion/TransformationCreate.php b/clients/algoliasearch-client-php/lib/Model/Ingestion/TransformationCreate.php index 32c6fe5238..95b0cb643f 100644 --- a/clients/algoliasearch-client-php/lib/Model/Ingestion/TransformationCreate.php +++ b/clients/algoliasearch-client-php/lib/Model/Ingestion/TransformationCreate.php @@ -285,10 +285,8 @@ public function setAuthenticationIDs($authenticationIDs) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -300,7 +298,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -311,7 +309,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -325,7 +323,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Ingestion/TransformationCreateResponse.php b/clients/algoliasearch-client-php/lib/Model/Ingestion/TransformationCreateResponse.php index 67770c53fb..382e21ac3e 100644 --- a/clients/algoliasearch-client-php/lib/Model/Ingestion/TransformationCreateResponse.php +++ b/clients/algoliasearch-client-php/lib/Model/Ingestion/TransformationCreateResponse.php @@ -221,10 +221,8 @@ public function setCreatedAt($createdAt) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -236,7 +234,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -247,7 +245,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -261,7 +259,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Ingestion/TransformationError.php b/clients/algoliasearch-client-php/lib/Model/Ingestion/TransformationError.php index 2673eba8f9..c29700395b 100644 --- a/clients/algoliasearch-client-php/lib/Model/Ingestion/TransformationError.php +++ b/clients/algoliasearch-client-php/lib/Model/Ingestion/TransformationError.php @@ -212,10 +212,8 @@ public function setMessage($message) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -227,7 +225,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -238,7 +236,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -252,7 +250,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Ingestion/TransformationModels.php b/clients/algoliasearch-client-php/lib/Model/Ingestion/TransformationModels.php index 0e3a43d52e..005893b420 100644 --- a/clients/algoliasearch-client-php/lib/Model/Ingestion/TransformationModels.php +++ b/clients/algoliasearch-client-php/lib/Model/Ingestion/TransformationModels.php @@ -186,10 +186,8 @@ public function setLlms($llms) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -201,7 +199,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -212,7 +210,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -226,7 +224,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Ingestion/TransformationSearch.php b/clients/algoliasearch-client-php/lib/Model/Ingestion/TransformationSearch.php index 2c8c61f3a3..3eb30f77a6 100644 --- a/clients/algoliasearch-client-php/lib/Model/Ingestion/TransformationSearch.php +++ b/clients/algoliasearch-client-php/lib/Model/Ingestion/TransformationSearch.php @@ -184,10 +184,8 @@ public function setTransformationIDs($transformationIDs) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -199,7 +197,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -210,7 +208,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -224,7 +222,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Ingestion/TransformationTry.php b/clients/algoliasearch-client-php/lib/Model/Ingestion/TransformationTry.php index ce96f27928..ee319087a6 100644 --- a/clients/algoliasearch-client-php/lib/Model/Ingestion/TransformationTry.php +++ b/clients/algoliasearch-client-php/lib/Model/Ingestion/TransformationTry.php @@ -251,10 +251,8 @@ public function setAuthentications($authentications) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -266,7 +264,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -277,7 +275,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -291,7 +289,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Ingestion/TransformationTryResponse.php b/clients/algoliasearch-client-php/lib/Model/Ingestion/TransformationTryResponse.php index b02c57bb90..441fa76c78 100644 --- a/clients/algoliasearch-client-php/lib/Model/Ingestion/TransformationTryResponse.php +++ b/clients/algoliasearch-client-php/lib/Model/Ingestion/TransformationTryResponse.php @@ -216,10 +216,8 @@ public function setError($error) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -231,7 +229,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -242,7 +240,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -256,7 +254,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Ingestion/TransformationUpdateResponse.php b/clients/algoliasearch-client-php/lib/Model/Ingestion/TransformationUpdateResponse.php index 99b8079c7f..4f7a68b7cd 100644 --- a/clients/algoliasearch-client-php/lib/Model/Ingestion/TransformationUpdateResponse.php +++ b/clients/algoliasearch-client-php/lib/Model/Ingestion/TransformationUpdateResponse.php @@ -221,10 +221,8 @@ public function setUpdatedAt($updatedAt) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -236,7 +234,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -247,7 +245,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -261,7 +259,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Ingestion/Trigger.php b/clients/algoliasearch-client-php/lib/Model/Ingestion/Trigger.php index fc0a6b4ca6..f02975d302 100644 --- a/clients/algoliasearch-client-php/lib/Model/Ingestion/Trigger.php +++ b/clients/algoliasearch-client-php/lib/Model/Ingestion/Trigger.php @@ -288,10 +288,8 @@ public function setNextRun($nextRun) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -303,7 +301,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -314,7 +312,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -328,7 +326,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Ingestion/TriggerUpdateInput.php b/clients/algoliasearch-client-php/lib/Model/Ingestion/TriggerUpdateInput.php index 9f9ff7d6b2..39adfb5300 100644 --- a/clients/algoliasearch-client-php/lib/Model/Ingestion/TriggerUpdateInput.php +++ b/clients/algoliasearch-client-php/lib/Model/Ingestion/TriggerUpdateInput.php @@ -186,10 +186,8 @@ public function setCron($cron) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -201,7 +199,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -212,7 +210,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -226,7 +224,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Ingestion/Window.php b/clients/algoliasearch-client-php/lib/Model/Ingestion/Window.php index 382f462e27..f386eee0a8 100644 --- a/clients/algoliasearch-client-php/lib/Model/Ingestion/Window.php +++ b/clients/algoliasearch-client-php/lib/Model/Ingestion/Window.php @@ -221,10 +221,8 @@ public function setEndDate($endDate) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -236,7 +234,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -247,7 +245,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -261,7 +259,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Insights/AddedToCartObjectIDs.php b/clients/algoliasearch-client-php/lib/Model/Insights/AddedToCartObjectIDs.php index c2a4606471..c5fe438ef0 100644 --- a/clients/algoliasearch-client-php/lib/Model/Insights/AddedToCartObjectIDs.php +++ b/clients/algoliasearch-client-php/lib/Model/Insights/AddedToCartObjectIDs.php @@ -614,10 +614,8 @@ public function setValue($value) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -629,7 +627,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -640,7 +638,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -654,7 +652,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Insights/AddedToCartObjectIDsAfterSearch.php b/clients/algoliasearch-client-php/lib/Model/Insights/AddedToCartObjectIDsAfterSearch.php index b7b60bd6c4..a242b77acd 100644 --- a/clients/algoliasearch-client-php/lib/Model/Insights/AddedToCartObjectIDsAfterSearch.php +++ b/clients/algoliasearch-client-php/lib/Model/Insights/AddedToCartObjectIDsAfterSearch.php @@ -671,10 +671,8 @@ public function setValue($value) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -686,7 +684,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -697,7 +695,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -711,7 +709,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Insights/ClickedFilters.php b/clients/algoliasearch-client-php/lib/Model/Insights/ClickedFilters.php index 73ad622710..55f5c8698e 100644 --- a/clients/algoliasearch-client-php/lib/Model/Insights/ClickedFilters.php +++ b/clients/algoliasearch-client-php/lib/Model/Insights/ClickedFilters.php @@ -469,10 +469,8 @@ public function setTimestamp($timestamp) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -484,7 +482,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -495,7 +493,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -509,7 +507,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Insights/ClickedObjectIDs.php b/clients/algoliasearch-client-php/lib/Model/Insights/ClickedObjectIDs.php index 7d67901bc5..56459b6012 100644 --- a/clients/algoliasearch-client-php/lib/Model/Insights/ClickedObjectIDs.php +++ b/clients/algoliasearch-client-php/lib/Model/Insights/ClickedObjectIDs.php @@ -469,10 +469,8 @@ public function setTimestamp($timestamp) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -484,7 +482,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -495,7 +493,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -509,7 +507,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Insights/ClickedObjectIDsAfterSearch.php b/clients/algoliasearch-client-php/lib/Model/Insights/ClickedObjectIDsAfterSearch.php index bcbd7900ff..744bcddb61 100644 --- a/clients/algoliasearch-client-php/lib/Model/Insights/ClickedObjectIDsAfterSearch.php +++ b/clients/algoliasearch-client-php/lib/Model/Insights/ClickedObjectIDsAfterSearch.php @@ -575,10 +575,8 @@ public function setTimestamp($timestamp) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -590,7 +588,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -601,7 +599,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -615,7 +613,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Insights/ConvertedFilters.php b/clients/algoliasearch-client-php/lib/Model/Insights/ConvertedFilters.php index 351e90c214..8ec47d1bc6 100644 --- a/clients/algoliasearch-client-php/lib/Model/Insights/ConvertedFilters.php +++ b/clients/algoliasearch-client-php/lib/Model/Insights/ConvertedFilters.php @@ -467,10 +467,8 @@ public function setTimestamp($timestamp) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -482,7 +480,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -493,7 +491,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -507,7 +505,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Insights/ConvertedObjectIDs.php b/clients/algoliasearch-client-php/lib/Model/Insights/ConvertedObjectIDs.php index 029fb5ecbd..e4307c717e 100644 --- a/clients/algoliasearch-client-php/lib/Model/Insights/ConvertedObjectIDs.php +++ b/clients/algoliasearch-client-php/lib/Model/Insights/ConvertedObjectIDs.php @@ -469,10 +469,8 @@ public function setTimestamp($timestamp) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -484,7 +482,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -495,7 +493,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -509,7 +507,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Insights/ConvertedObjectIDsAfterSearch.php b/clients/algoliasearch-client-php/lib/Model/Insights/ConvertedObjectIDsAfterSearch.php index 420186e422..66e90ac892 100644 --- a/clients/algoliasearch-client-php/lib/Model/Insights/ConvertedObjectIDsAfterSearch.php +++ b/clients/algoliasearch-client-php/lib/Model/Insights/ConvertedObjectIDsAfterSearch.php @@ -526,10 +526,8 @@ public function setTimestamp($timestamp) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -541,7 +539,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -552,7 +550,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -566,7 +564,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Insights/Discount.php b/clients/algoliasearch-client-php/lib/Model/Insights/Discount.php index f100ff8ec7..581e4261c6 100644 --- a/clients/algoliasearch-client-php/lib/Model/Insights/Discount.php +++ b/clients/algoliasearch-client-php/lib/Model/Insights/Discount.php @@ -146,10 +146,8 @@ public function valid() * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -161,7 +159,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -172,7 +170,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -186,7 +184,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Insights/EventsItems.php b/clients/algoliasearch-client-php/lib/Model/Insights/EventsItems.php index d021fb3697..f375e8b20a 100644 --- a/clients/algoliasearch-client-php/lib/Model/Insights/EventsItems.php +++ b/clients/algoliasearch-client-php/lib/Model/Insights/EventsItems.php @@ -770,10 +770,8 @@ public function setFilters($filters) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -785,7 +783,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -796,7 +794,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -810,7 +808,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Insights/EventsResponse.php b/clients/algoliasearch-client-php/lib/Model/Insights/EventsResponse.php index e1414f25ed..7e83f43059 100644 --- a/clients/algoliasearch-client-php/lib/Model/Insights/EventsResponse.php +++ b/clients/algoliasearch-client-php/lib/Model/Insights/EventsResponse.php @@ -212,10 +212,8 @@ public function setStatus($status) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -227,7 +225,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -238,7 +236,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -252,7 +250,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Insights/InsightsEvents.php b/clients/algoliasearch-client-php/lib/Model/Insights/InsightsEvents.php index fdeb95dfbf..0ca6338ea0 100644 --- a/clients/algoliasearch-client-php/lib/Model/Insights/InsightsEvents.php +++ b/clients/algoliasearch-client-php/lib/Model/Insights/InsightsEvents.php @@ -197,10 +197,8 @@ public function setEvents($events) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -212,7 +210,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -223,7 +221,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -237,7 +235,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Insights/ObjectData.php b/clients/algoliasearch-client-php/lib/Model/Insights/ObjectData.php index 986d890fe0..c6986b0c49 100644 --- a/clients/algoliasearch-client-php/lib/Model/Insights/ObjectData.php +++ b/clients/algoliasearch-client-php/lib/Model/Insights/ObjectData.php @@ -242,10 +242,8 @@ public function setDiscount($discount) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -257,7 +255,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -268,7 +266,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -282,7 +280,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Insights/ObjectDataAfterSearch.php b/clients/algoliasearch-client-php/lib/Model/Insights/ObjectDataAfterSearch.php index c653e4e031..6501aeb750 100644 --- a/clients/algoliasearch-client-php/lib/Model/Insights/ObjectDataAfterSearch.php +++ b/clients/algoliasearch-client-php/lib/Model/Insights/ObjectDataAfterSearch.php @@ -298,10 +298,8 @@ public function setDiscount($discount) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -313,7 +311,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -324,7 +322,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -338,7 +336,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Insights/Price.php b/clients/algoliasearch-client-php/lib/Model/Insights/Price.php index 5620ea4b88..62a43a9818 100644 --- a/clients/algoliasearch-client-php/lib/Model/Insights/Price.php +++ b/clients/algoliasearch-client-php/lib/Model/Insights/Price.php @@ -146,10 +146,8 @@ public function valid() * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -161,7 +159,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -172,7 +170,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -186,7 +184,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Insights/PurchasedObjectIDs.php b/clients/algoliasearch-client-php/lib/Model/Insights/PurchasedObjectIDs.php index bcdefbbbc2..de3f4e7484 100644 --- a/clients/algoliasearch-client-php/lib/Model/Insights/PurchasedObjectIDs.php +++ b/clients/algoliasearch-client-php/lib/Model/Insights/PurchasedObjectIDs.php @@ -614,10 +614,8 @@ public function setValue($value) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -629,7 +627,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -640,7 +638,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -654,7 +652,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Insights/PurchasedObjectIDsAfterSearch.php b/clients/algoliasearch-client-php/lib/Model/Insights/PurchasedObjectIDsAfterSearch.php index 1ac4880e0b..7360630870 100644 --- a/clients/algoliasearch-client-php/lib/Model/Insights/PurchasedObjectIDsAfterSearch.php +++ b/clients/algoliasearch-client-php/lib/Model/Insights/PurchasedObjectIDsAfterSearch.php @@ -617,10 +617,8 @@ public function setValue($value) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -632,7 +630,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -643,7 +641,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -657,7 +655,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Insights/Value.php b/clients/algoliasearch-client-php/lib/Model/Insights/Value.php index 5ecce7c526..082661b263 100644 --- a/clients/algoliasearch-client-php/lib/Model/Insights/Value.php +++ b/clients/algoliasearch-client-php/lib/Model/Insights/Value.php @@ -146,10 +146,8 @@ public function valid() * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -161,7 +159,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -172,7 +170,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -186,7 +184,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Insights/ViewedFilters.php b/clients/algoliasearch-client-php/lib/Model/Insights/ViewedFilters.php index b56c7512a5..0e50145673 100644 --- a/clients/algoliasearch-client-php/lib/Model/Insights/ViewedFilters.php +++ b/clients/algoliasearch-client-php/lib/Model/Insights/ViewedFilters.php @@ -469,10 +469,8 @@ public function setTimestamp($timestamp) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -484,7 +482,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -495,7 +493,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -509,7 +507,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Insights/ViewedObjectIDs.php b/clients/algoliasearch-client-php/lib/Model/Insights/ViewedObjectIDs.php index 285fdb505d..b8391a086e 100644 --- a/clients/algoliasearch-client-php/lib/Model/Insights/ViewedObjectIDs.php +++ b/clients/algoliasearch-client-php/lib/Model/Insights/ViewedObjectIDs.php @@ -469,10 +469,8 @@ public function setTimestamp($timestamp) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -484,7 +482,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -495,7 +493,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -509,7 +507,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Monitoring/Incident.php b/clients/algoliasearch-client-php/lib/Model/Monitoring/Incident.php index fc3ac783dd..8989a4ab88 100644 --- a/clients/algoliasearch-client-php/lib/Model/Monitoring/Incident.php +++ b/clients/algoliasearch-client-php/lib/Model/Monitoring/Incident.php @@ -212,10 +212,8 @@ public function setStatus($status) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -227,7 +225,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -238,7 +236,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -252,7 +250,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Monitoring/IncidentEntry.php b/clients/algoliasearch-client-php/lib/Model/Monitoring/IncidentEntry.php index 787fbcda3d..d157e03d5f 100644 --- a/clients/algoliasearch-client-php/lib/Model/Monitoring/IncidentEntry.php +++ b/clients/algoliasearch-client-php/lib/Model/Monitoring/IncidentEntry.php @@ -210,10 +210,8 @@ public function setV($v) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -225,7 +223,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -236,7 +234,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -250,7 +248,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Monitoring/IncidentsResponse.php b/clients/algoliasearch-client-php/lib/Model/Monitoring/IncidentsResponse.php index c09dd72b19..1b41bb04fa 100644 --- a/clients/algoliasearch-client-php/lib/Model/Monitoring/IncidentsResponse.php +++ b/clients/algoliasearch-client-php/lib/Model/Monitoring/IncidentsResponse.php @@ -178,10 +178,8 @@ public function setIncidents($incidents) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -193,7 +191,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -204,7 +202,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -218,7 +216,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Monitoring/IndexingMetric.php b/clients/algoliasearch-client-php/lib/Model/Monitoring/IndexingMetric.php index b7aa5596f9..7722ff0efd 100644 --- a/clients/algoliasearch-client-php/lib/Model/Monitoring/IndexingMetric.php +++ b/clients/algoliasearch-client-php/lib/Model/Monitoring/IndexingMetric.php @@ -178,10 +178,8 @@ public function setIndexing($indexing) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -193,7 +191,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -204,7 +202,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -218,7 +216,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Monitoring/IndexingTimeResponse.php b/clients/algoliasearch-client-php/lib/Model/Monitoring/IndexingTimeResponse.php index 48b196367b..d3a17d0a12 100644 --- a/clients/algoliasearch-client-php/lib/Model/Monitoring/IndexingTimeResponse.php +++ b/clients/algoliasearch-client-php/lib/Model/Monitoring/IndexingTimeResponse.php @@ -178,10 +178,8 @@ public function setMetrics($metrics) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -193,7 +191,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -204,7 +202,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -218,7 +216,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Monitoring/InfrastructureResponse.php b/clients/algoliasearch-client-php/lib/Model/Monitoring/InfrastructureResponse.php index 7389c9fc2b..55af9dc1eb 100644 --- a/clients/algoliasearch-client-php/lib/Model/Monitoring/InfrastructureResponse.php +++ b/clients/algoliasearch-client-php/lib/Model/Monitoring/InfrastructureResponse.php @@ -178,10 +178,8 @@ public function setMetrics($metrics) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -193,7 +191,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -204,7 +202,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -218,7 +216,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Monitoring/InventoryResponse.php b/clients/algoliasearch-client-php/lib/Model/Monitoring/InventoryResponse.php index 0af968ac8f..3c2f7335ed 100644 --- a/clients/algoliasearch-client-php/lib/Model/Monitoring/InventoryResponse.php +++ b/clients/algoliasearch-client-php/lib/Model/Monitoring/InventoryResponse.php @@ -178,10 +178,8 @@ public function setInventory($inventory) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -193,7 +191,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -204,7 +202,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -218,7 +216,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Monitoring/LatencyMetric.php b/clients/algoliasearch-client-php/lib/Model/Monitoring/LatencyMetric.php index 7e916d4601..58eb4527ec 100644 --- a/clients/algoliasearch-client-php/lib/Model/Monitoring/LatencyMetric.php +++ b/clients/algoliasearch-client-php/lib/Model/Monitoring/LatencyMetric.php @@ -178,10 +178,8 @@ public function setLatency($latency) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -193,7 +191,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -204,7 +202,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -218,7 +216,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Monitoring/LatencyResponse.php b/clients/algoliasearch-client-php/lib/Model/Monitoring/LatencyResponse.php index 539bd5fe1c..2bd40a080e 100644 --- a/clients/algoliasearch-client-php/lib/Model/Monitoring/LatencyResponse.php +++ b/clients/algoliasearch-client-php/lib/Model/Monitoring/LatencyResponse.php @@ -178,10 +178,8 @@ public function setMetrics($metrics) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -193,7 +191,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -204,7 +202,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -218,7 +216,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Monitoring/Metrics.php b/clients/algoliasearch-client-php/lib/Model/Monitoring/Metrics.php index 8f29e1047e..744ff92b41 100644 --- a/clients/algoliasearch-client-php/lib/Model/Monitoring/Metrics.php +++ b/clients/algoliasearch-client-php/lib/Model/Monitoring/Metrics.php @@ -306,10 +306,8 @@ public function setAvgBuildTime($avgBuildTime) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -321,7 +319,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -332,7 +330,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -346,7 +344,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Monitoring/ProbesMetric.php b/clients/algoliasearch-client-php/lib/Model/Monitoring/ProbesMetric.php index 874c6f9e8a..b1684c4340 100644 --- a/clients/algoliasearch-client-php/lib/Model/Monitoring/ProbesMetric.php +++ b/clients/algoliasearch-client-php/lib/Model/Monitoring/ProbesMetric.php @@ -210,10 +210,8 @@ public function setV($v) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -225,7 +223,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -236,7 +234,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -250,7 +248,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Monitoring/Server.php b/clients/algoliasearch-client-php/lib/Model/Monitoring/Server.php index c1f35bf1fb..314b0131d4 100644 --- a/clients/algoliasearch-client-php/lib/Model/Monitoring/Server.php +++ b/clients/algoliasearch-client-php/lib/Model/Monitoring/Server.php @@ -374,10 +374,8 @@ public function setType($type) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -389,7 +387,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -400,7 +398,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -414,7 +412,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Monitoring/StatusResponse.php b/clients/algoliasearch-client-php/lib/Model/Monitoring/StatusResponse.php index 54b5c738b3..2981881151 100644 --- a/clients/algoliasearch-client-php/lib/Model/Monitoring/StatusResponse.php +++ b/clients/algoliasearch-client-php/lib/Model/Monitoring/StatusResponse.php @@ -178,10 +178,8 @@ public function setStatus($status) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -193,7 +191,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -204,7 +202,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -218,7 +216,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Monitoring/TimeEntry.php b/clients/algoliasearch-client-php/lib/Model/Monitoring/TimeEntry.php index 92a96bb004..c2c0589e61 100644 --- a/clients/algoliasearch-client-php/lib/Model/Monitoring/TimeEntry.php +++ b/clients/algoliasearch-client-php/lib/Model/Monitoring/TimeEntry.php @@ -210,10 +210,8 @@ public function setV($v) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -225,7 +223,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -236,7 +234,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -250,7 +248,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Personalization/DeleteUserProfileResponse.php b/clients/algoliasearch-client-php/lib/Model/Personalization/DeleteUserProfileResponse.php index 07afbfa717..5e2a34345a 100644 --- a/clients/algoliasearch-client-php/lib/Model/Personalization/DeleteUserProfileResponse.php +++ b/clients/algoliasearch-client-php/lib/Model/Personalization/DeleteUserProfileResponse.php @@ -219,10 +219,8 @@ public function setDeletedUntil($deletedUntil) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -234,7 +232,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -245,7 +243,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -259,7 +257,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Personalization/EventScoring.php b/clients/algoliasearch-client-php/lib/Model/Personalization/EventScoring.php index 2ea610fcc6..6393593185 100644 --- a/clients/algoliasearch-client-php/lib/Model/Personalization/EventScoring.php +++ b/clients/algoliasearch-client-php/lib/Model/Personalization/EventScoring.php @@ -254,10 +254,8 @@ public function setEventType($eventType) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -269,7 +267,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -280,7 +278,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -294,7 +292,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Personalization/FacetScoring.php b/clients/algoliasearch-client-php/lib/Model/Personalization/FacetScoring.php index b8aef623e4..6e70b74234 100644 --- a/clients/algoliasearch-client-php/lib/Model/Personalization/FacetScoring.php +++ b/clients/algoliasearch-client-php/lib/Model/Personalization/FacetScoring.php @@ -219,10 +219,8 @@ public function setFacetName($facetName) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -234,7 +232,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -245,7 +243,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -259,7 +257,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Personalization/GetUserTokenResponse.php b/clients/algoliasearch-client-php/lib/Model/Personalization/GetUserTokenResponse.php index 93569d5e01..814beefe0e 100644 --- a/clients/algoliasearch-client-php/lib/Model/Personalization/GetUserTokenResponse.php +++ b/clients/algoliasearch-client-php/lib/Model/Personalization/GetUserTokenResponse.php @@ -254,10 +254,8 @@ public function setScores($scores) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -269,7 +267,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -280,7 +278,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -294,7 +292,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Personalization/PersonalizationStrategyParams.php b/clients/algoliasearch-client-php/lib/Model/Personalization/PersonalizationStrategyParams.php index 4c97bd4bc4..186386a599 100644 --- a/clients/algoliasearch-client-php/lib/Model/Personalization/PersonalizationStrategyParams.php +++ b/clients/algoliasearch-client-php/lib/Model/Personalization/PersonalizationStrategyParams.php @@ -268,10 +268,8 @@ public function setPersonalizationImpact($personalizationImpact) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -283,7 +281,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -294,7 +292,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -308,7 +306,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Personalization/SetPersonalizationStrategyResponse.php b/clients/algoliasearch-client-php/lib/Model/Personalization/SetPersonalizationStrategyResponse.php index d9a4e7fff7..22e54b9e3f 100644 --- a/clients/algoliasearch-client-php/lib/Model/Personalization/SetPersonalizationStrategyResponse.php +++ b/clients/algoliasearch-client-php/lib/Model/Personalization/SetPersonalizationStrategyResponse.php @@ -184,10 +184,8 @@ public function setMessage($message) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -199,7 +197,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -210,7 +208,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -224,7 +222,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/QuerySuggestions/BaseResponse.php b/clients/algoliasearch-client-php/lib/Model/QuerySuggestions/BaseResponse.php index 83324cc7c0..8ab19e6dc2 100644 --- a/clients/algoliasearch-client-php/lib/Model/QuerySuggestions/BaseResponse.php +++ b/clients/algoliasearch-client-php/lib/Model/QuerySuggestions/BaseResponse.php @@ -210,10 +210,8 @@ public function setMessage($message) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -225,7 +223,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -236,7 +234,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -250,7 +248,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/QuerySuggestions/ConfigStatus.php b/clients/algoliasearch-client-php/lib/Model/QuerySuggestions/ConfigStatus.php index a2e2356f12..0cd77d3a12 100644 --- a/clients/algoliasearch-client-php/lib/Model/QuerySuggestions/ConfigStatus.php +++ b/clients/algoliasearch-client-php/lib/Model/QuerySuggestions/ConfigStatus.php @@ -306,10 +306,8 @@ public function setLastSuccessfulBuildDuration($lastSuccessfulBuildDuration) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -321,7 +319,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -332,7 +330,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -346,7 +344,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/QuerySuggestions/Configuration.php b/clients/algoliasearch-client-php/lib/Model/QuerySuggestions/Configuration.php index a6cc715438..9ebe4a9947 100644 --- a/clients/algoliasearch-client-php/lib/Model/QuerySuggestions/Configuration.php +++ b/clients/algoliasearch-client-php/lib/Model/QuerySuggestions/Configuration.php @@ -320,10 +320,8 @@ public function setAllowSpecialCharacters($allowSpecialCharacters) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -335,7 +333,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -346,7 +344,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -360,7 +358,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/QuerySuggestions/ConfigurationResponse.php b/clients/algoliasearch-client-php/lib/Model/QuerySuggestions/ConfigurationResponse.php index f5b9eb4a9f..3c36dca9b7 100644 --- a/clients/algoliasearch-client-php/lib/Model/QuerySuggestions/ConfigurationResponse.php +++ b/clients/algoliasearch-client-php/lib/Model/QuerySuggestions/ConfigurationResponse.php @@ -403,10 +403,8 @@ public function setAllowSpecialCharacters($allowSpecialCharacters) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -418,7 +416,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -429,7 +427,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -443,7 +441,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/QuerySuggestions/ConfigurationWithIndex.php b/clients/algoliasearch-client-php/lib/Model/QuerySuggestions/ConfigurationWithIndex.php index 6d9d13e9fc..25bea4b912 100644 --- a/clients/algoliasearch-client-php/lib/Model/QuerySuggestions/ConfigurationWithIndex.php +++ b/clients/algoliasearch-client-php/lib/Model/QuerySuggestions/ConfigurationWithIndex.php @@ -356,10 +356,8 @@ public function setIndexName($indexName) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -371,7 +369,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -382,7 +380,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -396,7 +394,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/QuerySuggestions/Facet.php b/clients/algoliasearch-client-php/lib/Model/QuerySuggestions/Facet.php index ff68b284db..0393ab10db 100644 --- a/clients/algoliasearch-client-php/lib/Model/QuerySuggestions/Facet.php +++ b/clients/algoliasearch-client-php/lib/Model/QuerySuggestions/Facet.php @@ -212,10 +212,8 @@ public function setAmount($amount) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -227,7 +225,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -238,7 +236,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -252,7 +250,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/QuerySuggestions/Languages.php b/clients/algoliasearch-client-php/lib/Model/QuerySuggestions/Languages.php index 94361ee66e..7a2d7c42ca 100644 --- a/clients/algoliasearch-client-php/lib/Model/QuerySuggestions/Languages.php +++ b/clients/algoliasearch-client-php/lib/Model/QuerySuggestions/Languages.php @@ -146,10 +146,8 @@ public function valid() * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -161,7 +159,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -172,7 +170,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -186,7 +184,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/QuerySuggestions/LogFile.php b/clients/algoliasearch-client-php/lib/Model/QuerySuggestions/LogFile.php index 74e7d6ee02..f2f463c816 100644 --- a/clients/algoliasearch-client-php/lib/Model/QuerySuggestions/LogFile.php +++ b/clients/algoliasearch-client-php/lib/Model/QuerySuggestions/LogFile.php @@ -274,10 +274,8 @@ public function setContextLevel($contextLevel) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -289,7 +287,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -300,7 +298,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -314,7 +312,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/QuerySuggestions/SourceIndex.php b/clients/algoliasearch-client-php/lib/Model/QuerySuggestions/SourceIndex.php index 198cc3e146..9a92959f7c 100644 --- a/clients/algoliasearch-client-php/lib/Model/QuerySuggestions/SourceIndex.php +++ b/clients/algoliasearch-client-php/lib/Model/QuerySuggestions/SourceIndex.php @@ -425,10 +425,8 @@ public function setExternal($external) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -440,7 +438,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -451,7 +449,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -465,7 +463,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Recommend/AroundPrecision.php b/clients/algoliasearch-client-php/lib/Model/Recommend/AroundPrecision.php index fbbec2e949..870308e909 100644 --- a/clients/algoliasearch-client-php/lib/Model/Recommend/AroundPrecision.php +++ b/clients/algoliasearch-client-php/lib/Model/Recommend/AroundPrecision.php @@ -146,10 +146,8 @@ public function valid() * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -161,7 +159,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -172,7 +170,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -186,7 +184,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Recommend/AroundRadius.php b/clients/algoliasearch-client-php/lib/Model/Recommend/AroundRadius.php index 70713be082..4d4a2616f4 100644 --- a/clients/algoliasearch-client-php/lib/Model/Recommend/AroundRadius.php +++ b/clients/algoliasearch-client-php/lib/Model/Recommend/AroundRadius.php @@ -146,10 +146,8 @@ public function valid() * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -161,7 +159,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -172,7 +170,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -186,7 +184,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Recommend/AutoFacetFilter.php b/clients/algoliasearch-client-php/lib/Model/Recommend/AutoFacetFilter.php index 4ad2f4c9b1..8ad31fb1be 100644 --- a/clients/algoliasearch-client-php/lib/Model/Recommend/AutoFacetFilter.php +++ b/clients/algoliasearch-client-php/lib/Model/Recommend/AutoFacetFilter.php @@ -212,10 +212,8 @@ public function setNegative($negative) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -227,7 +225,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -238,7 +236,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -252,7 +250,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Recommend/BoughtTogetherQuery.php b/clients/algoliasearch-client-php/lib/Model/Recommend/BoughtTogetherQuery.php index 47904e61db..aa2acd23a3 100644 --- a/clients/algoliasearch-client-php/lib/Model/Recommend/BoughtTogetherQuery.php +++ b/clients/algoliasearch-client-php/lib/Model/Recommend/BoughtTogetherQuery.php @@ -383,10 +383,8 @@ public function setObjectID($objectID) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -398,7 +396,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -409,7 +407,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -423,7 +421,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Recommend/Condition.php b/clients/algoliasearch-client-php/lib/Model/Recommend/Condition.php index c35347bc07..69da95df5a 100644 --- a/clients/algoliasearch-client-php/lib/Model/Recommend/Condition.php +++ b/clients/algoliasearch-client-php/lib/Model/Recommend/Condition.php @@ -222,10 +222,8 @@ public function setContext($context) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -237,7 +235,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -248,7 +246,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -262,7 +260,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Recommend/Consequence.php b/clients/algoliasearch-client-php/lib/Model/Recommend/Consequence.php index ed3c0cdcc4..3b7d0e640b 100644 --- a/clients/algoliasearch-client-php/lib/Model/Recommend/Consequence.php +++ b/clients/algoliasearch-client-php/lib/Model/Recommend/Consequence.php @@ -260,10 +260,8 @@ public function setParams($params) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -275,7 +273,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -286,7 +284,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -300,7 +298,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Recommend/DeletedAtResponse.php b/clients/algoliasearch-client-php/lib/Model/Recommend/DeletedAtResponse.php index 8c168a743d..0cb9e3b523 100644 --- a/clients/algoliasearch-client-php/lib/Model/Recommend/DeletedAtResponse.php +++ b/clients/algoliasearch-client-php/lib/Model/Recommend/DeletedAtResponse.php @@ -221,10 +221,8 @@ public function setDeletedAt($deletedAt) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -236,7 +234,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -247,7 +245,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -261,7 +259,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Recommend/Distinct.php b/clients/algoliasearch-client-php/lib/Model/Recommend/Distinct.php index ee972f0fa8..89d0d57b76 100644 --- a/clients/algoliasearch-client-php/lib/Model/Recommend/Distinct.php +++ b/clients/algoliasearch-client-php/lib/Model/Recommend/Distinct.php @@ -146,10 +146,8 @@ public function valid() * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -161,7 +159,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -172,7 +170,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -186,7 +184,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Recommend/Exhaustive.php b/clients/algoliasearch-client-php/lib/Model/Recommend/Exhaustive.php index eaac095971..28da0296fc 100644 --- a/clients/algoliasearch-client-php/lib/Model/Recommend/Exhaustive.php +++ b/clients/algoliasearch-client-php/lib/Model/Recommend/Exhaustive.php @@ -308,10 +308,8 @@ public function setTypo($typo) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -323,7 +321,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -334,7 +332,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -348,7 +346,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Recommend/FacetFilters.php b/clients/algoliasearch-client-php/lib/Model/Recommend/FacetFilters.php index 2bb25486f5..2033764274 100644 --- a/clients/algoliasearch-client-php/lib/Model/Recommend/FacetFilters.php +++ b/clients/algoliasearch-client-php/lib/Model/Recommend/FacetFilters.php @@ -146,10 +146,8 @@ public function valid() * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -161,7 +159,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -172,7 +170,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -186,7 +184,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Recommend/FacetOrdering.php b/clients/algoliasearch-client-php/lib/Model/Recommend/FacetOrdering.php index 622f60b9df..b07e0cbe27 100644 --- a/clients/algoliasearch-client-php/lib/Model/Recommend/FacetOrdering.php +++ b/clients/algoliasearch-client-php/lib/Model/Recommend/FacetOrdering.php @@ -212,10 +212,8 @@ public function setValues($values) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -227,7 +225,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -238,7 +236,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -252,7 +250,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Recommend/Facets.php b/clients/algoliasearch-client-php/lib/Model/Recommend/Facets.php index d50922ad69..95613e5e76 100644 --- a/clients/algoliasearch-client-php/lib/Model/Recommend/Facets.php +++ b/clients/algoliasearch-client-php/lib/Model/Recommend/Facets.php @@ -180,10 +180,8 @@ public function setOrder($order) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -195,7 +193,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -206,7 +204,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -220,7 +218,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Recommend/FacetsStats.php b/clients/algoliasearch-client-php/lib/Model/Recommend/FacetsStats.php index 398a708729..463d6b753e 100644 --- a/clients/algoliasearch-client-php/lib/Model/Recommend/FacetsStats.php +++ b/clients/algoliasearch-client-php/lib/Model/Recommend/FacetsStats.php @@ -274,10 +274,8 @@ public function setSum($sum) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -289,7 +287,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -300,7 +298,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -314,7 +312,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Recommend/FallbackParams.php b/clients/algoliasearch-client-php/lib/Model/Recommend/FallbackParams.php index 3ac45ec5fc..1552f19432 100644 --- a/clients/algoliasearch-client-php/lib/Model/Recommend/FallbackParams.php +++ b/clients/algoliasearch-client-php/lib/Model/Recommend/FallbackParams.php @@ -2672,10 +2672,8 @@ public function setReRankingApplyFilter($reRankingApplyFilter) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -2687,7 +2685,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -2698,7 +2696,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -2712,7 +2710,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Recommend/GetRecommendTaskResponse.php b/clients/algoliasearch-client-php/lib/Model/Recommend/GetRecommendTaskResponse.php index 4f1165d827..0b8e08fe8b 100644 --- a/clients/algoliasearch-client-php/lib/Model/Recommend/GetRecommendTaskResponse.php +++ b/clients/algoliasearch-client-php/lib/Model/Recommend/GetRecommendTaskResponse.php @@ -184,10 +184,8 @@ public function setStatus($status) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -199,7 +197,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -210,7 +208,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -224,7 +222,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Recommend/GetRecommendationsParams.php b/clients/algoliasearch-client-php/lib/Model/Recommend/GetRecommendationsParams.php index f123e19ecf..c6ffd4c2fe 100644 --- a/clients/algoliasearch-client-php/lib/Model/Recommend/GetRecommendationsParams.php +++ b/clients/algoliasearch-client-php/lib/Model/Recommend/GetRecommendationsParams.php @@ -186,10 +186,8 @@ public function setRequests($requests) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -201,7 +199,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -212,7 +210,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -226,7 +224,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Recommend/GetRecommendationsResponse.php b/clients/algoliasearch-client-php/lib/Model/Recommend/GetRecommendationsResponse.php index 51a5c1c5f4..1bc6314c03 100644 --- a/clients/algoliasearch-client-php/lib/Model/Recommend/GetRecommendationsResponse.php +++ b/clients/algoliasearch-client-php/lib/Model/Recommend/GetRecommendationsResponse.php @@ -184,10 +184,8 @@ public function setResults($results) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -199,7 +197,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -210,7 +208,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -224,7 +222,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Recommend/HideConsequenceObject.php b/clients/algoliasearch-client-php/lib/Model/Recommend/HideConsequenceObject.php index 44ff10f50e..1f21968847 100644 --- a/clients/algoliasearch-client-php/lib/Model/Recommend/HideConsequenceObject.php +++ b/clients/algoliasearch-client-php/lib/Model/Recommend/HideConsequenceObject.php @@ -180,10 +180,8 @@ public function setObjectID($objectID) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -195,7 +193,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -206,7 +204,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -220,7 +218,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Recommend/HighlightResult.php b/clients/algoliasearch-client-php/lib/Model/Recommend/HighlightResult.php index 1cd65156c5..551fea01a4 100644 --- a/clients/algoliasearch-client-php/lib/Model/Recommend/HighlightResult.php +++ b/clients/algoliasearch-client-php/lib/Model/Recommend/HighlightResult.php @@ -286,10 +286,8 @@ public function setFullyHighlighted($fullyHighlighted) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -301,7 +299,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -312,7 +310,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -326,7 +324,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Recommend/HighlightResultOption.php b/clients/algoliasearch-client-php/lib/Model/Recommend/HighlightResultOption.php index c6c9d482ae..a795e87fc1 100644 --- a/clients/algoliasearch-client-php/lib/Model/Recommend/HighlightResultOption.php +++ b/clients/algoliasearch-client-php/lib/Model/Recommend/HighlightResultOption.php @@ -288,10 +288,8 @@ public function setFullyHighlighted($fullyHighlighted) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -303,7 +301,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -314,7 +312,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -328,7 +326,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Recommend/IgnorePlurals.php b/clients/algoliasearch-client-php/lib/Model/Recommend/IgnorePlurals.php index de26f57e80..a34233966d 100644 --- a/clients/algoliasearch-client-php/lib/Model/Recommend/IgnorePlurals.php +++ b/clients/algoliasearch-client-php/lib/Model/Recommend/IgnorePlurals.php @@ -146,10 +146,8 @@ public function valid() * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -161,7 +159,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -172,7 +170,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -186,7 +184,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Recommend/LookingSimilarQuery.php b/clients/algoliasearch-client-php/lib/Model/Recommend/LookingSimilarQuery.php index c0a94f90bb..dc86effbd4 100644 --- a/clients/algoliasearch-client-php/lib/Model/Recommend/LookingSimilarQuery.php +++ b/clients/algoliasearch-client-php/lib/Model/Recommend/LookingSimilarQuery.php @@ -415,10 +415,8 @@ public function setFallbackParameters($fallbackParameters) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -430,7 +428,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -441,7 +439,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -455,7 +453,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Recommend/MatchedGeoLocation.php b/clients/algoliasearch-client-php/lib/Model/Recommend/MatchedGeoLocation.php index 9dcea16d46..701849b9c4 100644 --- a/clients/algoliasearch-client-php/lib/Model/Recommend/MatchedGeoLocation.php +++ b/clients/algoliasearch-client-php/lib/Model/Recommend/MatchedGeoLocation.php @@ -242,10 +242,8 @@ public function setDistance($distance) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -257,7 +255,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -268,7 +266,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -282,7 +280,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Recommend/NumericFilters.php b/clients/algoliasearch-client-php/lib/Model/Recommend/NumericFilters.php index c7f6db40d7..ddda846e0c 100644 --- a/clients/algoliasearch-client-php/lib/Model/Recommend/NumericFilters.php +++ b/clients/algoliasearch-client-php/lib/Model/Recommend/NumericFilters.php @@ -146,10 +146,8 @@ public function valid() * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -161,7 +159,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -172,7 +170,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -186,7 +184,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Recommend/OptionalFilters.php b/clients/algoliasearch-client-php/lib/Model/Recommend/OptionalFilters.php index ff1bd92a43..393fd3108b 100644 --- a/clients/algoliasearch-client-php/lib/Model/Recommend/OptionalFilters.php +++ b/clients/algoliasearch-client-php/lib/Model/Recommend/OptionalFilters.php @@ -146,10 +146,8 @@ public function valid() * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -161,7 +159,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -172,7 +170,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -186,7 +184,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Recommend/ParamsConsequence.php b/clients/algoliasearch-client-php/lib/Model/Recommend/ParamsConsequence.php index 4feac88970..7cec53b2d7 100644 --- a/clients/algoliasearch-client-php/lib/Model/Recommend/ParamsConsequence.php +++ b/clients/algoliasearch-client-php/lib/Model/Recommend/ParamsConsequence.php @@ -244,10 +244,8 @@ public function setOptionalFilters($optionalFilters) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -259,7 +257,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -270,7 +268,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -284,7 +282,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Recommend/Personalization.php b/clients/algoliasearch-client-php/lib/Model/Recommend/Personalization.php index 49c279551b..a191c01e2e 100644 --- a/clients/algoliasearch-client-php/lib/Model/Recommend/Personalization.php +++ b/clients/algoliasearch-client-php/lib/Model/Recommend/Personalization.php @@ -242,10 +242,8 @@ public function setScore($score) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -257,7 +255,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -268,7 +266,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -282,7 +280,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Recommend/PromoteConsequenceObject.php b/clients/algoliasearch-client-php/lib/Model/Recommend/PromoteConsequenceObject.php index c85cfd668d..2c3b453b2a 100644 --- a/clients/algoliasearch-client-php/lib/Model/Recommend/PromoteConsequenceObject.php +++ b/clients/algoliasearch-client-php/lib/Model/Recommend/PromoteConsequenceObject.php @@ -222,10 +222,8 @@ public function setPosition($position) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -237,7 +235,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -248,7 +246,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -262,7 +260,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Recommend/Range.php b/clients/algoliasearch-client-php/lib/Model/Recommend/Range.php index 7b92e3a202..97e0f301fc 100644 --- a/clients/algoliasearch-client-php/lib/Model/Recommend/Range.php +++ b/clients/algoliasearch-client-php/lib/Model/Recommend/Range.php @@ -212,10 +212,8 @@ public function setValue($value) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -227,7 +225,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -238,7 +236,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -252,7 +250,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Recommend/RankingInfo.php b/clients/algoliasearch-client-php/lib/Model/Recommend/RankingInfo.php index 6c92303911..e2a1c01ad1 100644 --- a/clients/algoliasearch-client-php/lib/Model/Recommend/RankingInfo.php +++ b/clients/algoliasearch-client-php/lib/Model/Recommend/RankingInfo.php @@ -645,10 +645,8 @@ public function setPromotedByReRanking($promotedByReRanking) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -660,7 +658,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -671,7 +669,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -685,7 +683,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Recommend/ReRankingApplyFilter.php b/clients/algoliasearch-client-php/lib/Model/Recommend/ReRankingApplyFilter.php index d0e0abd55c..461e2d9ba6 100644 --- a/clients/algoliasearch-client-php/lib/Model/Recommend/ReRankingApplyFilter.php +++ b/clients/algoliasearch-client-php/lib/Model/Recommend/ReRankingApplyFilter.php @@ -146,10 +146,8 @@ public function valid() * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -161,7 +159,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -172,7 +170,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -186,7 +184,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Recommend/RecommendHit.php b/clients/algoliasearch-client-php/lib/Model/Recommend/RecommendHit.php index e2b765ae59..39bded4c8a 100644 --- a/clients/algoliasearch-client-php/lib/Model/Recommend/RecommendHit.php +++ b/clients/algoliasearch-client-php/lib/Model/Recommend/RecommendHit.php @@ -363,10 +363,8 @@ public function setScore($score) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -378,7 +376,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -389,7 +387,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -403,7 +401,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Recommend/RecommendRule.php b/clients/algoliasearch-client-php/lib/Model/Recommend/RecommendRule.php index 9729861926..8292609400 100644 --- a/clients/algoliasearch-client-php/lib/Model/Recommend/RecommendRule.php +++ b/clients/algoliasearch-client-php/lib/Model/Recommend/RecommendRule.php @@ -340,10 +340,8 @@ public function setEnabled($enabled) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -355,7 +353,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -366,7 +364,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -380,7 +378,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Recommend/RecommendationsHit.php b/clients/algoliasearch-client-php/lib/Model/Recommend/RecommendationsHit.php index 936768831a..5f2f510172 100644 --- a/clients/algoliasearch-client-php/lib/Model/Recommend/RecommendationsHit.php +++ b/clients/algoliasearch-client-php/lib/Model/Recommend/RecommendationsHit.php @@ -432,10 +432,8 @@ public function setFacetValue($facetValue) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -447,7 +445,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -458,7 +456,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -472,7 +470,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Recommend/RecommendationsRequest.php b/clients/algoliasearch-client-php/lib/Model/Recommend/RecommendationsRequest.php index b4f48b867b..af0084cf79 100644 --- a/clients/algoliasearch-client-php/lib/Model/Recommend/RecommendationsRequest.php +++ b/clients/algoliasearch-client-php/lib/Model/Recommend/RecommendationsRequest.php @@ -482,10 +482,8 @@ public function setFacetValue($facetValue) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -497,7 +495,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -508,7 +506,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -522,7 +520,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Recommend/RecommendationsResults.php b/clients/algoliasearch-client-php/lib/Model/Recommend/RecommendationsResults.php index ea615d3c01..6466371e6a 100644 --- a/clients/algoliasearch-client-php/lib/Model/Recommend/RecommendationsResults.php +++ b/clients/algoliasearch-client-php/lib/Model/Recommend/RecommendationsResults.php @@ -1146,10 +1146,8 @@ public function setHits($hits) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -1161,7 +1159,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -1172,7 +1170,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -1186,7 +1184,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Recommend/RecommendedForYouQuery.php b/clients/algoliasearch-client-php/lib/Model/Recommend/RecommendedForYouQuery.php index 0e3b46399c..6a9a3e9b3e 100644 --- a/clients/algoliasearch-client-php/lib/Model/Recommend/RecommendedForYouQuery.php +++ b/clients/algoliasearch-client-php/lib/Model/Recommend/RecommendedForYouQuery.php @@ -380,10 +380,8 @@ public function setFallbackParameters($fallbackParameters) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -395,7 +393,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -406,7 +404,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -420,7 +418,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Recommend/Redirect.php b/clients/algoliasearch-client-php/lib/Model/Recommend/Redirect.php index 8497b234a1..5d7a8c63a0 100644 --- a/clients/algoliasearch-client-php/lib/Model/Recommend/Redirect.php +++ b/clients/algoliasearch-client-php/lib/Model/Recommend/Redirect.php @@ -180,10 +180,8 @@ public function setIndex($index) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -195,7 +193,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -206,7 +204,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -220,7 +218,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Recommend/RedirectRuleIndexData.php b/clients/algoliasearch-client-php/lib/Model/Recommend/RedirectRuleIndexData.php index 038381ef03..971d2b75c5 100644 --- a/clients/algoliasearch-client-php/lib/Model/Recommend/RedirectRuleIndexData.php +++ b/clients/algoliasearch-client-php/lib/Model/Recommend/RedirectRuleIndexData.php @@ -186,10 +186,8 @@ public function setRuleObjectID($ruleObjectID) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -201,7 +199,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -212,7 +210,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -226,7 +224,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Recommend/RedirectRuleIndexMetadata.php b/clients/algoliasearch-client-php/lib/Model/Recommend/RedirectRuleIndexMetadata.php index 4aff906ab0..7058fe49e1 100644 --- a/clients/algoliasearch-client-php/lib/Model/Recommend/RedirectRuleIndexMetadata.php +++ b/clients/algoliasearch-client-php/lib/Model/Recommend/RedirectRuleIndexMetadata.php @@ -324,10 +324,8 @@ public function setData($data) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -339,7 +337,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -350,7 +348,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -364,7 +362,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Recommend/RedirectURL.php b/clients/algoliasearch-client-php/lib/Model/Recommend/RedirectURL.php index 18f03a2abd..dcf3883cac 100644 --- a/clients/algoliasearch-client-php/lib/Model/Recommend/RedirectURL.php +++ b/clients/algoliasearch-client-php/lib/Model/Recommend/RedirectURL.php @@ -180,10 +180,8 @@ public function setUrl($url) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -195,7 +193,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -206,7 +204,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -220,7 +218,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Recommend/RelatedQuery.php b/clients/algoliasearch-client-php/lib/Model/Recommend/RelatedQuery.php index 330fb94a69..9ff4e9f664 100644 --- a/clients/algoliasearch-client-php/lib/Model/Recommend/RelatedQuery.php +++ b/clients/algoliasearch-client-php/lib/Model/Recommend/RelatedQuery.php @@ -415,10 +415,8 @@ public function setFallbackParameters($fallbackParameters) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -430,7 +428,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -441,7 +439,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -455,7 +453,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Recommend/RemoveStopWords.php b/clients/algoliasearch-client-php/lib/Model/Recommend/RemoveStopWords.php index 56c3dd0b41..fa8e90a43b 100644 --- a/clients/algoliasearch-client-php/lib/Model/Recommend/RemoveStopWords.php +++ b/clients/algoliasearch-client-php/lib/Model/Recommend/RemoveStopWords.php @@ -146,10 +146,8 @@ public function valid() * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -161,7 +159,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -172,7 +170,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -186,7 +184,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Recommend/RenderingContent.php b/clients/algoliasearch-client-php/lib/Model/Recommend/RenderingContent.php index 0338d8986f..b6e0483a3e 100644 --- a/clients/algoliasearch-client-php/lib/Model/Recommend/RenderingContent.php +++ b/clients/algoliasearch-client-php/lib/Model/Recommend/RenderingContent.php @@ -212,10 +212,8 @@ public function setRedirect($redirect) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -227,7 +225,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -238,7 +236,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -252,7 +250,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Recommend/RuleMetadata.php b/clients/algoliasearch-client-php/lib/Model/Recommend/RuleMetadata.php index e25d026a23..d44d2853d9 100644 --- a/clients/algoliasearch-client-php/lib/Model/Recommend/RuleMetadata.php +++ b/clients/algoliasearch-client-php/lib/Model/Recommend/RuleMetadata.php @@ -180,10 +180,8 @@ public function setLastUpdate($lastUpdate) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -195,7 +193,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -206,7 +204,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -220,7 +218,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Recommend/SearchParams.php b/clients/algoliasearch-client-php/lib/Model/Recommend/SearchParams.php index 7066a8db38..04ebc28d26 100644 --- a/clients/algoliasearch-client-php/lib/Model/Recommend/SearchParams.php +++ b/clients/algoliasearch-client-php/lib/Model/Recommend/SearchParams.php @@ -2672,10 +2672,8 @@ public function setReRankingApplyFilter($reRankingApplyFilter) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -2687,7 +2685,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -2698,7 +2696,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -2712,7 +2710,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Recommend/SearchParamsObject.php b/clients/algoliasearch-client-php/lib/Model/Recommend/SearchParamsObject.php index ac6f310398..d0f0da1d88 100644 --- a/clients/algoliasearch-client-php/lib/Model/Recommend/SearchParamsObject.php +++ b/clients/algoliasearch-client-php/lib/Model/Recommend/SearchParamsObject.php @@ -2674,10 +2674,8 @@ public function setReRankingApplyFilter($reRankingApplyFilter) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -2689,7 +2687,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -2700,7 +2698,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -2714,7 +2712,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Recommend/SearchRecommendRulesParams.php b/clients/algoliasearch-client-php/lib/Model/Recommend/SearchRecommendRulesParams.php index 93a56ee574..1ccebfdc75 100644 --- a/clients/algoliasearch-client-php/lib/Model/Recommend/SearchRecommendRulesParams.php +++ b/clients/algoliasearch-client-php/lib/Model/Recommend/SearchRecommendRulesParams.php @@ -444,10 +444,8 @@ public function setMaxValuesPerFacet($maxValuesPerFacet) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -459,7 +457,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -470,7 +468,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -484,7 +482,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Recommend/SearchRecommendRulesResponse.php b/clients/algoliasearch-client-php/lib/Model/Recommend/SearchRecommendRulesResponse.php index d0c5627c62..14f572c68a 100644 --- a/clients/algoliasearch-client-php/lib/Model/Recommend/SearchRecommendRulesResponse.php +++ b/clients/algoliasearch-client-php/lib/Model/Recommend/SearchRecommendRulesResponse.php @@ -297,10 +297,8 @@ public function setNbPages($nbPages) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -312,7 +310,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -323,7 +321,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -337,7 +335,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Recommend/SemanticSearch.php b/clients/algoliasearch-client-php/lib/Model/Recommend/SemanticSearch.php index 7bd3f7750f..da7616c7fa 100644 --- a/clients/algoliasearch-client-php/lib/Model/Recommend/SemanticSearch.php +++ b/clients/algoliasearch-client-php/lib/Model/Recommend/SemanticSearch.php @@ -180,10 +180,8 @@ public function setEventSources($eventSources) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -195,7 +193,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -206,7 +204,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -220,7 +218,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Recommend/SnippetResult.php b/clients/algoliasearch-client-php/lib/Model/Recommend/SnippetResult.php index dac1f4125a..ff3e9d7594 100644 --- a/clients/algoliasearch-client-php/lib/Model/Recommend/SnippetResult.php +++ b/clients/algoliasearch-client-php/lib/Model/Recommend/SnippetResult.php @@ -219,10 +219,8 @@ public function setMatchLevel($matchLevel) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -234,7 +232,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -245,7 +243,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -259,7 +257,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Recommend/SnippetResultOption.php b/clients/algoliasearch-client-php/lib/Model/Recommend/SnippetResultOption.php index c9beaadd4a..bdc538a010 100644 --- a/clients/algoliasearch-client-php/lib/Model/Recommend/SnippetResultOption.php +++ b/clients/algoliasearch-client-php/lib/Model/Recommend/SnippetResultOption.php @@ -221,10 +221,8 @@ public function setMatchLevel($matchLevel) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -236,7 +234,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -247,7 +245,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -261,7 +259,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Recommend/TagFilters.php b/clients/algoliasearch-client-php/lib/Model/Recommend/TagFilters.php index 3825eea692..c9714f4904 100644 --- a/clients/algoliasearch-client-php/lib/Model/Recommend/TagFilters.php +++ b/clients/algoliasearch-client-php/lib/Model/Recommend/TagFilters.php @@ -146,10 +146,8 @@ public function valid() * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -161,7 +159,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -172,7 +170,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -186,7 +184,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Recommend/TrendingFacetHit.php b/clients/algoliasearch-client-php/lib/Model/Recommend/TrendingFacetHit.php index e667b2a9bc..5513fdd170 100644 --- a/clients/algoliasearch-client-php/lib/Model/Recommend/TrendingFacetHit.php +++ b/clients/algoliasearch-client-php/lib/Model/Recommend/TrendingFacetHit.php @@ -271,10 +271,8 @@ public function setFacetValue($facetValue) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -286,7 +284,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -297,7 +295,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -311,7 +309,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Recommend/TrendingFacetsQuery.php b/clients/algoliasearch-client-php/lib/Model/Recommend/TrendingFacetsQuery.php index 95c520bb96..b35e659d18 100644 --- a/clients/algoliasearch-client-php/lib/Model/Recommend/TrendingFacetsQuery.php +++ b/clients/algoliasearch-client-php/lib/Model/Recommend/TrendingFacetsQuery.php @@ -415,10 +415,8 @@ public function setFallbackParameters($fallbackParameters) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -430,7 +428,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -441,7 +439,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -455,7 +453,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Recommend/TrendingItemsQuery.php b/clients/algoliasearch-client-php/lib/Model/Recommend/TrendingItemsQuery.php index 6f8e5406cf..d5cb301335 100644 --- a/clients/algoliasearch-client-php/lib/Model/Recommend/TrendingItemsQuery.php +++ b/clients/algoliasearch-client-php/lib/Model/Recommend/TrendingItemsQuery.php @@ -444,10 +444,8 @@ public function setFallbackParameters($fallbackParameters) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -459,7 +457,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -470,7 +468,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -484,7 +482,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Recommend/TypoTolerance.php b/clients/algoliasearch-client-php/lib/Model/Recommend/TypoTolerance.php index 6bf3b2e121..4f9d79625e 100644 --- a/clients/algoliasearch-client-php/lib/Model/Recommend/TypoTolerance.php +++ b/clients/algoliasearch-client-php/lib/Model/Recommend/TypoTolerance.php @@ -146,10 +146,8 @@ public function valid() * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -161,7 +159,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -172,7 +170,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -186,7 +184,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Recommend/Value.php b/clients/algoliasearch-client-php/lib/Model/Recommend/Value.php index 0924a9318d..740738acb5 100644 --- a/clients/algoliasearch-client-php/lib/Model/Recommend/Value.php +++ b/clients/algoliasearch-client-php/lib/Model/Recommend/Value.php @@ -242,10 +242,8 @@ public function setHide($hide) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -257,7 +255,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -268,7 +266,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -282,7 +280,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/AddApiKeyResponse.php b/clients/algoliasearch-client-php/lib/Model/Search/AddApiKeyResponse.php index 2f4e986e75..2615bbb1f8 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/AddApiKeyResponse.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/AddApiKeyResponse.php @@ -219,10 +219,8 @@ public function setCreatedAt($createdAt) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -234,7 +232,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -245,7 +243,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -259,7 +257,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/ApiKey.php b/clients/algoliasearch-client-php/lib/Model/Search/ApiKey.php index bb3c7c3e49..6db2cf7600 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/ApiKey.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/ApiKey.php @@ -410,10 +410,8 @@ public function setValidity($validity) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -425,7 +423,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -436,7 +434,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -450,7 +448,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/AroundPrecision.php b/clients/algoliasearch-client-php/lib/Model/Search/AroundPrecision.php index c5376d6d56..1170c0ded9 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/AroundPrecision.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/AroundPrecision.php @@ -146,10 +146,8 @@ public function valid() * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -161,7 +159,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -172,7 +170,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -186,7 +184,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/AroundRadius.php b/clients/algoliasearch-client-php/lib/Model/Search/AroundRadius.php index 87c7124fba..41ce8bdb9f 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/AroundRadius.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/AroundRadius.php @@ -146,10 +146,8 @@ public function valid() * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -161,7 +159,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -172,7 +170,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -186,7 +184,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/AssignUserIdParams.php b/clients/algoliasearch-client-php/lib/Model/Search/AssignUserIdParams.php index 598da322a1..c9d04ed617 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/AssignUserIdParams.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/AssignUserIdParams.php @@ -186,10 +186,8 @@ public function setCluster($cluster) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -201,7 +199,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -212,7 +210,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -226,7 +224,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/AttributeToUpdate.php b/clients/algoliasearch-client-php/lib/Model/Search/AttributeToUpdate.php index 4fdaedf54a..99405c53eb 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/AttributeToUpdate.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/AttributeToUpdate.php @@ -219,10 +219,8 @@ public function setValue($value) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -234,7 +232,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -245,7 +243,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -259,7 +257,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/AutomaticFacetFilter.php b/clients/algoliasearch-client-php/lib/Model/Search/AutomaticFacetFilter.php index 4b0bdb7e8f..17489cff13 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/AutomaticFacetFilter.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/AutomaticFacetFilter.php @@ -250,10 +250,8 @@ public function setDisjunctive($disjunctive) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -265,7 +263,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -276,7 +274,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -290,7 +288,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/AutomaticFacetFilters.php b/clients/algoliasearch-client-php/lib/Model/Search/AutomaticFacetFilters.php index 28a995bba6..d59d5642f0 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/AutomaticFacetFilters.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/AutomaticFacetFilters.php @@ -146,10 +146,8 @@ public function valid() * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -161,7 +159,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -172,7 +170,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -186,7 +184,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/BatchAssignUserIdsParams.php b/clients/algoliasearch-client-php/lib/Model/Search/BatchAssignUserIdsParams.php index ea80a704ae..ddf9513f94 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/BatchAssignUserIdsParams.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/BatchAssignUserIdsParams.php @@ -221,10 +221,8 @@ public function setUsers($users) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -236,7 +234,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -247,7 +245,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -261,7 +259,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/BatchDictionaryEntriesParams.php b/clients/algoliasearch-client-php/lib/Model/Search/BatchDictionaryEntriesParams.php index 45ea102098..ca0a495a88 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/BatchDictionaryEntriesParams.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/BatchDictionaryEntriesParams.php @@ -218,10 +218,8 @@ public function setRequests($requests) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -233,7 +231,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -244,7 +242,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -258,7 +256,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/BatchDictionaryEntriesRequest.php b/clients/algoliasearch-client-php/lib/Model/Search/BatchDictionaryEntriesRequest.php index 598b46c1fc..3412a4f083 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/BatchDictionaryEntriesRequest.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/BatchDictionaryEntriesRequest.php @@ -219,10 +219,8 @@ public function setBody($body) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -234,7 +232,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -245,7 +243,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -259,7 +257,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/BatchParams.php b/clients/algoliasearch-client-php/lib/Model/Search/BatchParams.php index 028d60141c..801e3b71a4 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/BatchParams.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/BatchParams.php @@ -186,10 +186,8 @@ public function setRequests($requests) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -201,7 +199,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -212,7 +210,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -226,7 +224,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/BatchRequest.php b/clients/algoliasearch-client-php/lib/Model/Search/BatchRequest.php index 54db8e37c3..958ddfff42 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/BatchRequest.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/BatchRequest.php @@ -219,10 +219,8 @@ public function setBody($body) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -234,7 +232,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -245,7 +243,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -259,7 +257,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/BatchResponse.php b/clients/algoliasearch-client-php/lib/Model/Search/BatchResponse.php index 413529a78c..30dc733054 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/BatchResponse.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/BatchResponse.php @@ -219,10 +219,8 @@ public function setObjectIDs($objectIDs) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -234,7 +232,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -245,7 +243,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -259,7 +257,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/BatchWriteParams.php b/clients/algoliasearch-client-php/lib/Model/Search/BatchWriteParams.php index 00f9516233..85c742d7d3 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/BatchWriteParams.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/BatchWriteParams.php @@ -186,10 +186,8 @@ public function setRequests($requests) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -201,7 +199,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -212,7 +210,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -226,7 +224,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/BrowseParams.php b/clients/algoliasearch-client-php/lib/Model/Search/BrowseParams.php index f05d02e316..80e0252323 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/BrowseParams.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/BrowseParams.php @@ -2736,10 +2736,8 @@ public function setCursor($cursor) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -2751,7 +2749,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -2762,7 +2760,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -2776,7 +2774,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/BrowseParamsObject.php b/clients/algoliasearch-client-php/lib/Model/Search/BrowseParamsObject.php index 22ec63454e..1d863a5756 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/BrowseParamsObject.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/BrowseParamsObject.php @@ -2704,10 +2704,8 @@ public function setCursor($cursor) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -2719,7 +2717,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -2730,7 +2728,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -2744,7 +2742,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/BrowseResponse.php b/clients/algoliasearch-client-php/lib/Model/Search/BrowseResponse.php index 8ba63655d1..3ed8d360a5 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/BrowseResponse.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/BrowseResponse.php @@ -1236,10 +1236,8 @@ public function setCursor($cursor) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -1251,7 +1249,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -1262,7 +1260,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -1276,7 +1274,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/BuiltInOperation.php b/clients/algoliasearch-client-php/lib/Model/Search/BuiltInOperation.php index ca4404af31..3e609c0cca 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/BuiltInOperation.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/BuiltInOperation.php @@ -221,10 +221,8 @@ public function setValue($value) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -236,7 +234,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -247,7 +245,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -261,7 +259,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/BuiltInOperationValue.php b/clients/algoliasearch-client-php/lib/Model/Search/BuiltInOperationValue.php index c2f0347ad7..89adf66ea4 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/BuiltInOperationValue.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/BuiltInOperationValue.php @@ -144,10 +144,8 @@ public function valid() * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -159,7 +157,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -170,7 +168,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -184,7 +182,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/Condition.php b/clients/algoliasearch-client-php/lib/Model/Search/Condition.php index 8dea8afbaf..a784d7631e 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/Condition.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/Condition.php @@ -316,10 +316,8 @@ public function setFilters($filters) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -331,7 +329,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -342,7 +340,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -356,7 +354,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/Consequence.php b/clients/algoliasearch-client-php/lib/Model/Search/Consequence.php index 8e9c639654..dc6f33ff19 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/Consequence.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/Consequence.php @@ -324,10 +324,8 @@ public function setUserData($userData) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -339,7 +337,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -350,7 +348,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -364,7 +362,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/ConsequenceHide.php b/clients/algoliasearch-client-php/lib/Model/Search/ConsequenceHide.php index d2ab64da4c..9388c52beb 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/ConsequenceHide.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/ConsequenceHide.php @@ -186,10 +186,8 @@ public function setObjectID($objectID) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -201,7 +199,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -212,7 +210,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -226,7 +224,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/ConsequenceParams.php b/clients/algoliasearch-client-php/lib/Model/Search/ConsequenceParams.php index 6e6390fa5a..5fe29cfd9b 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/ConsequenceParams.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/ConsequenceParams.php @@ -2736,10 +2736,8 @@ public function setAutomaticOptionalFacetFilters($automaticOptionalFacetFilters) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -2751,7 +2749,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -2762,7 +2760,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -2776,7 +2774,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/ConsequenceQuery.php b/clients/algoliasearch-client-php/lib/Model/Search/ConsequenceQuery.php index ee3b8bc4ca..7feb2de019 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/ConsequenceQuery.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/ConsequenceQuery.php @@ -212,10 +212,8 @@ public function setEdits($edits) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -227,7 +225,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -238,7 +236,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -252,7 +250,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/ConsequenceQueryObject.php b/clients/algoliasearch-client-php/lib/Model/Search/ConsequenceQueryObject.php index 876dee559f..7e7850ef9d 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/ConsequenceQueryObject.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/ConsequenceQueryObject.php @@ -210,10 +210,8 @@ public function setEdits($edits) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -225,7 +223,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -236,7 +234,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -250,7 +248,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/CreatedAtResponse.php b/clients/algoliasearch-client-php/lib/Model/Search/CreatedAtResponse.php index a1e175669e..8bff93bc69 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/CreatedAtResponse.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/CreatedAtResponse.php @@ -186,10 +186,8 @@ public function setCreatedAt($createdAt) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -201,7 +199,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -212,7 +210,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -226,7 +224,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/DeleteApiKeyResponse.php b/clients/algoliasearch-client-php/lib/Model/Search/DeleteApiKeyResponse.php index 96bde1c74e..6ed5aa5dde 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/DeleteApiKeyResponse.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/DeleteApiKeyResponse.php @@ -184,10 +184,8 @@ public function setDeletedAt($deletedAt) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -199,7 +197,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -210,7 +208,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -224,7 +222,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/DeleteByParams.php b/clients/algoliasearch-client-php/lib/Model/Search/DeleteByParams.php index f83f1d5cdf..3ec1f90fd8 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/DeleteByParams.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/DeleteByParams.php @@ -402,10 +402,8 @@ public function setInsidePolygon($insidePolygon) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -417,7 +415,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -428,7 +426,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -442,7 +440,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/DeleteSourceResponse.php b/clients/algoliasearch-client-php/lib/Model/Search/DeleteSourceResponse.php index 0844b202dd..5151970cf5 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/DeleteSourceResponse.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/DeleteSourceResponse.php @@ -184,10 +184,8 @@ public function setDeletedAt($deletedAt) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -199,7 +197,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -210,7 +208,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -224,7 +222,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/DeletedAtResponse.php b/clients/algoliasearch-client-php/lib/Model/Search/DeletedAtResponse.php index 67b06d985b..5693de0a0d 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/DeletedAtResponse.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/DeletedAtResponse.php @@ -221,10 +221,8 @@ public function setDeletedAt($deletedAt) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -236,7 +234,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -247,7 +245,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -261,7 +259,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/DictionaryEntry.php b/clients/algoliasearch-client-php/lib/Model/Search/DictionaryEntry.php index 05ffd01af0..0c7e7f121f 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/DictionaryEntry.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/DictionaryEntry.php @@ -378,10 +378,8 @@ public function setType($type) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -393,7 +391,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -404,7 +402,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -418,7 +416,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/DictionaryLanguage.php b/clients/algoliasearch-client-php/lib/Model/Search/DictionaryLanguage.php index 8a16f93591..533faf42c5 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/DictionaryLanguage.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/DictionaryLanguage.php @@ -180,10 +180,8 @@ public function setNbCustomEntries($nbCustomEntries) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -195,7 +193,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -206,7 +204,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -220,7 +218,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/DictionarySettingsParams.php b/clients/algoliasearch-client-php/lib/Model/Search/DictionarySettingsParams.php index 2ecf1c66e8..d220c7a1a4 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/DictionarySettingsParams.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/DictionarySettingsParams.php @@ -186,10 +186,8 @@ public function setDisableStandardEntries($disableStandardEntries) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -201,7 +199,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -212,7 +210,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -226,7 +224,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/Distinct.php b/clients/algoliasearch-client-php/lib/Model/Search/Distinct.php index c7930804ea..cca5545269 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/Distinct.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/Distinct.php @@ -146,10 +146,8 @@ public function valid() * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -161,7 +159,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -172,7 +170,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -186,7 +184,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/Edit.php b/clients/algoliasearch-client-php/lib/Model/Search/Edit.php index 68e7505ec3..63a6937c2c 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/Edit.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/Edit.php @@ -242,10 +242,8 @@ public function setInsert($insert) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -257,7 +255,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -268,7 +266,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -282,7 +280,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/Exhaustive.php b/clients/algoliasearch-client-php/lib/Model/Search/Exhaustive.php index 3d802d2fe2..0aaa1914b3 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/Exhaustive.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/Exhaustive.php @@ -308,10 +308,8 @@ public function setTypo($typo) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -323,7 +321,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -334,7 +332,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -348,7 +346,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/FacetFilters.php b/clients/algoliasearch-client-php/lib/Model/Search/FacetFilters.php index 9223b6e94b..fee1c8f30c 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/FacetFilters.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/FacetFilters.php @@ -146,10 +146,8 @@ public function valid() * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -161,7 +159,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -172,7 +170,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -186,7 +184,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/FacetHits.php b/clients/algoliasearch-client-php/lib/Model/Search/FacetHits.php index a0cd6f7fd0..e75fed8f6c 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/FacetHits.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/FacetHits.php @@ -254,10 +254,8 @@ public function setCount($count) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -269,7 +267,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -280,7 +278,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -294,7 +292,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/FacetOrdering.php b/clients/algoliasearch-client-php/lib/Model/Search/FacetOrdering.php index 103096f19c..6af76ba7c9 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/FacetOrdering.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/FacetOrdering.php @@ -212,10 +212,8 @@ public function setValues($values) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -227,7 +225,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -238,7 +236,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -252,7 +250,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/Facets.php b/clients/algoliasearch-client-php/lib/Model/Search/Facets.php index cb88de2ac2..d54be3b4e9 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/Facets.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/Facets.php @@ -180,10 +180,8 @@ public function setOrder($order) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -195,7 +193,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -206,7 +204,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -220,7 +218,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/FacetsStats.php b/clients/algoliasearch-client-php/lib/Model/Search/FacetsStats.php index af1717f4a4..5cf5c5d948 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/FacetsStats.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/FacetsStats.php @@ -274,10 +274,8 @@ public function setSum($sum) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -289,7 +287,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -300,7 +298,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -314,7 +312,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/FetchedIndex.php b/clients/algoliasearch-client-php/lib/Model/Search/FetchedIndex.php index 95cc6af91d..80f4b3acf8 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/FetchedIndex.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/FetchedIndex.php @@ -560,10 +560,8 @@ public function setVirtual($virtual) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -575,7 +573,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -586,7 +584,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -600,7 +598,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/GetApiKeyResponse.php b/clients/algoliasearch-client-php/lib/Model/Search/GetApiKeyResponse.php index fcd27571aa..c5a48c72a8 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/GetApiKeyResponse.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/GetApiKeyResponse.php @@ -475,10 +475,8 @@ public function setValidity($validity) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -490,7 +488,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -501,7 +499,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -515,7 +513,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/GetDictionarySettingsResponse.php b/clients/algoliasearch-client-php/lib/Model/Search/GetDictionarySettingsResponse.php index ce63711925..c72b2fface 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/GetDictionarySettingsResponse.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/GetDictionarySettingsResponse.php @@ -184,10 +184,8 @@ public function setDisableStandardEntries($disableStandardEntries) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -199,7 +197,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -210,7 +208,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -224,7 +222,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/GetLogsResponse.php b/clients/algoliasearch-client-php/lib/Model/Search/GetLogsResponse.php index 98d248b80b..7968c48769 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/GetLogsResponse.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/GetLogsResponse.php @@ -184,10 +184,8 @@ public function setLogs($logs) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -199,7 +197,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -210,7 +208,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -224,7 +222,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/GetObjectsParams.php b/clients/algoliasearch-client-php/lib/Model/Search/GetObjectsParams.php index e4181c9754..93fef2672d 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/GetObjectsParams.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/GetObjectsParams.php @@ -186,10 +186,8 @@ public function setRequests($requests) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -201,7 +199,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -212,7 +210,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -226,7 +224,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/GetObjectsRequest.php b/clients/algoliasearch-client-php/lib/Model/Search/GetObjectsRequest.php index f5d9917a76..fd12a93607 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/GetObjectsRequest.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/GetObjectsRequest.php @@ -253,10 +253,8 @@ public function setIndexName($indexName) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -268,7 +266,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -279,7 +277,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -293,7 +291,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/GetObjectsResponse.php b/clients/algoliasearch-client-php/lib/Model/Search/GetObjectsResponse.php index 0ebb88a64c..44b6153709 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/GetObjectsResponse.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/GetObjectsResponse.php @@ -184,10 +184,8 @@ public function setResults($results) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -199,7 +197,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -210,7 +208,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -224,7 +222,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/GetTaskResponse.php b/clients/algoliasearch-client-php/lib/Model/Search/GetTaskResponse.php index 54333eaf06..d2fcb36f60 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/GetTaskResponse.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/GetTaskResponse.php @@ -184,10 +184,8 @@ public function setStatus($status) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -199,7 +197,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -210,7 +208,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -224,7 +222,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/GetTopUserIdsResponse.php b/clients/algoliasearch-client-php/lib/Model/Search/GetTopUserIdsResponse.php index 9c70ead624..e7b5f4b633 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/GetTopUserIdsResponse.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/GetTopUserIdsResponse.php @@ -186,10 +186,8 @@ public function setTopUsers($topUsers) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -201,7 +199,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -212,7 +210,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -226,7 +224,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/HasPendingMappingsResponse.php b/clients/algoliasearch-client-php/lib/Model/Search/HasPendingMappingsResponse.php index dc7c9948c7..c3d47705d0 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/HasPendingMappingsResponse.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/HasPendingMappingsResponse.php @@ -216,10 +216,8 @@ public function setClusters($clusters) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -231,7 +229,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -242,7 +240,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -256,7 +254,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/HighlightResult.php b/clients/algoliasearch-client-php/lib/Model/Search/HighlightResult.php index bd72c8ea8d..baeaf212c4 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/HighlightResult.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/HighlightResult.php @@ -286,10 +286,8 @@ public function setFullyHighlighted($fullyHighlighted) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -301,7 +299,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -312,7 +310,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -326,7 +324,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/HighlightResultOption.php b/clients/algoliasearch-client-php/lib/Model/Search/HighlightResultOption.php index 9d7aa9a4d7..ab96e13f9a 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/HighlightResultOption.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/HighlightResultOption.php @@ -288,10 +288,8 @@ public function setFullyHighlighted($fullyHighlighted) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -303,7 +301,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -314,7 +312,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -328,7 +326,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/Hit.php b/clients/algoliasearch-client-php/lib/Model/Search/Hit.php index ae34d9c968..0d8543ee23 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/Hit.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/Hit.php @@ -314,10 +314,8 @@ public function setDistinctSeqID($distinctSeqID) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -329,7 +327,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -340,7 +338,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -354,7 +352,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/IgnorePlurals.php b/clients/algoliasearch-client-php/lib/Model/Search/IgnorePlurals.php index 244a3dbdee..d175ed08b3 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/IgnorePlurals.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/IgnorePlurals.php @@ -146,10 +146,8 @@ public function valid() * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -161,7 +159,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -172,7 +170,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -186,7 +184,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/IndexSettings.php b/clients/algoliasearch-client-php/lib/Model/Search/IndexSettings.php index 780048dc33..cad3e24abe 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/IndexSettings.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/IndexSettings.php @@ -2156,10 +2156,8 @@ public function setReRankingApplyFilter($reRankingApplyFilter) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -2171,7 +2169,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -2182,7 +2180,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -2196,7 +2194,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/Languages.php b/clients/algoliasearch-client-php/lib/Model/Search/Languages.php index fac71765d6..192ac173ea 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/Languages.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/Languages.php @@ -256,10 +256,8 @@ public function setCompounds($compounds) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -271,7 +269,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -282,7 +280,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -296,7 +294,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/ListApiKeysResponse.php b/clients/algoliasearch-client-php/lib/Model/Search/ListApiKeysResponse.php index d781a3abd0..a853562544 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/ListApiKeysResponse.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/ListApiKeysResponse.php @@ -184,10 +184,8 @@ public function setKeys($keys) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -199,7 +197,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -210,7 +208,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -224,7 +222,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/ListClustersResponse.php b/clients/algoliasearch-client-php/lib/Model/Search/ListClustersResponse.php index 137f0af051..5bbaf714b3 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/ListClustersResponse.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/ListClustersResponse.php @@ -186,10 +186,8 @@ public function setTopUsers($topUsers) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -201,7 +199,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -212,7 +210,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -226,7 +224,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/ListIndicesResponse.php b/clients/algoliasearch-client-php/lib/Model/Search/ListIndicesResponse.php index 41c4021f38..2b08383f37 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/ListIndicesResponse.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/ListIndicesResponse.php @@ -216,10 +216,8 @@ public function setNbPages($nbPages) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -231,7 +229,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -242,7 +240,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -256,7 +254,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/ListUserIdsResponse.php b/clients/algoliasearch-client-php/lib/Model/Search/ListUserIdsResponse.php index c47278e2e7..1b5b4838ba 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/ListUserIdsResponse.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/ListUserIdsResponse.php @@ -186,10 +186,8 @@ public function setUserIDs($userIDs) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -201,7 +199,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -212,7 +210,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -226,7 +224,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/Log.php b/clients/algoliasearch-client-php/lib/Model/Search/Log.php index e048fadbd5..e6597a0a8c 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/Log.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/Log.php @@ -678,10 +678,8 @@ public function setInnerQueries($innerQueries) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -693,7 +691,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -704,7 +702,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -718,7 +716,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/LogQuery.php b/clients/algoliasearch-client-php/lib/Model/Search/LogQuery.php index cdd7976753..90fe3233a7 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/LogQuery.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/LogQuery.php @@ -242,10 +242,8 @@ public function setQueryId($queryId) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -257,7 +255,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -268,7 +266,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -282,7 +280,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/MatchedGeoLocation.php b/clients/algoliasearch-client-php/lib/Model/Search/MatchedGeoLocation.php index d4f151bf13..839bd1653b 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/MatchedGeoLocation.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/MatchedGeoLocation.php @@ -242,10 +242,8 @@ public function setDistance($distance) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -257,7 +255,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -268,7 +266,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -282,7 +280,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/MultipleBatchRequest.php b/clients/algoliasearch-client-php/lib/Model/Search/MultipleBatchRequest.php index 7885dbd3f1..126e359c5c 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/MultipleBatchRequest.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/MultipleBatchRequest.php @@ -251,10 +251,8 @@ public function setIndexName($indexName) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -266,7 +264,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -277,7 +275,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -291,7 +289,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/MultipleBatchResponse.php b/clients/algoliasearch-client-php/lib/Model/Search/MultipleBatchResponse.php index dd93133c13..c319f7bde3 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/MultipleBatchResponse.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/MultipleBatchResponse.php @@ -219,10 +219,8 @@ public function setObjectIDs($objectIDs) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -234,7 +232,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -245,7 +243,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -259,7 +257,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/NumericFilters.php b/clients/algoliasearch-client-php/lib/Model/Search/NumericFilters.php index 5185af3c07..aaed5643d5 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/NumericFilters.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/NumericFilters.php @@ -146,10 +146,8 @@ public function valid() * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -161,7 +159,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -172,7 +170,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -186,7 +184,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/OperationIndexParams.php b/clients/algoliasearch-client-php/lib/Model/Search/OperationIndexParams.php index 1fd875771b..12b1184fe7 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/OperationIndexParams.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/OperationIndexParams.php @@ -251,10 +251,8 @@ public function setScope($scope) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -266,7 +264,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -277,7 +275,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -291,7 +289,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/OptionalFilters.php b/clients/algoliasearch-client-php/lib/Model/Search/OptionalFilters.php index 4183bc1850..cc5bcd4b5d 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/OptionalFilters.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/OptionalFilters.php @@ -146,10 +146,8 @@ public function valid() * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -161,7 +159,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -172,7 +170,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -186,7 +184,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/Personalization.php b/clients/algoliasearch-client-php/lib/Model/Search/Personalization.php index cfbed6a2e0..e49218a797 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/Personalization.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/Personalization.php @@ -242,10 +242,8 @@ public function setScore($score) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -257,7 +255,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -268,7 +266,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -282,7 +280,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/Promote.php b/clients/algoliasearch-client-php/lib/Model/Search/Promote.php index b00c6d3bf6..c5398ae96e 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/Promote.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/Promote.php @@ -261,10 +261,8 @@ public function setObjectID($objectID) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -276,7 +274,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -287,7 +285,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -301,7 +299,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/PromoteObjectID.php b/clients/algoliasearch-client-php/lib/Model/Search/PromoteObjectID.php index 4648711dc8..03e061d76b 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/PromoteObjectID.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/PromoteObjectID.php @@ -221,10 +221,8 @@ public function setPosition($position) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -236,7 +234,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -247,7 +245,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -261,7 +259,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/PromoteObjectIDs.php b/clients/algoliasearch-client-php/lib/Model/Search/PromoteObjectIDs.php index 146d6f96f1..450e6d97c8 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/PromoteObjectIDs.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/PromoteObjectIDs.php @@ -228,10 +228,8 @@ public function setPosition($position) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -243,7 +241,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -254,7 +252,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -268,7 +266,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/Range.php b/clients/algoliasearch-client-php/lib/Model/Search/Range.php index a9e9dcc320..e45a0299d9 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/Range.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/Range.php @@ -212,10 +212,8 @@ public function setValue($value) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -227,7 +225,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -238,7 +236,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -252,7 +250,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/RankingInfo.php b/clients/algoliasearch-client-php/lib/Model/Search/RankingInfo.php index 70ed514cd0..723a10927c 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/RankingInfo.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/RankingInfo.php @@ -645,10 +645,8 @@ public function setPromotedByReRanking($promotedByReRanking) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -660,7 +658,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -671,7 +669,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -685,7 +683,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/ReRankingApplyFilter.php b/clients/algoliasearch-client-php/lib/Model/Search/ReRankingApplyFilter.php index b09229f4e1..f8619a1706 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/ReRankingApplyFilter.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/ReRankingApplyFilter.php @@ -146,10 +146,8 @@ public function valid() * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -161,7 +159,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -172,7 +170,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -186,7 +184,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/Redirect.php b/clients/algoliasearch-client-php/lib/Model/Search/Redirect.php index 9095bf02b5..662ac9aef5 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/Redirect.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/Redirect.php @@ -180,10 +180,8 @@ public function setIndex($index) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -195,7 +193,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -206,7 +204,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -220,7 +218,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/RedirectRuleIndexData.php b/clients/algoliasearch-client-php/lib/Model/Search/RedirectRuleIndexData.php index dc5ea52698..8a4ad8975f 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/RedirectRuleIndexData.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/RedirectRuleIndexData.php @@ -186,10 +186,8 @@ public function setRuleObjectID($ruleObjectID) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -201,7 +199,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -212,7 +210,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -226,7 +224,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/RedirectRuleIndexMetadata.php b/clients/algoliasearch-client-php/lib/Model/Search/RedirectRuleIndexMetadata.php index b604b838b6..0ebfdadc73 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/RedirectRuleIndexMetadata.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/RedirectRuleIndexMetadata.php @@ -324,10 +324,8 @@ public function setData($data) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -339,7 +337,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -350,7 +348,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -364,7 +362,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/RedirectURL.php b/clients/algoliasearch-client-php/lib/Model/Search/RedirectURL.php index 5abd6f8227..8995b01f85 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/RedirectURL.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/RedirectURL.php @@ -180,10 +180,8 @@ public function setUrl($url) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -195,7 +193,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -206,7 +204,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -220,7 +218,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/RemoveStopWords.php b/clients/algoliasearch-client-php/lib/Model/Search/RemoveStopWords.php index 1fb7140d6c..edab67151a 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/RemoveStopWords.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/RemoveStopWords.php @@ -146,10 +146,8 @@ public function valid() * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -161,7 +159,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -172,7 +170,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -186,7 +184,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/RemoveUserIdResponse.php b/clients/algoliasearch-client-php/lib/Model/Search/RemoveUserIdResponse.php index f333cec77b..c1bf37c6c7 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/RemoveUserIdResponse.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/RemoveUserIdResponse.php @@ -184,10 +184,8 @@ public function setDeletedAt($deletedAt) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -199,7 +197,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -210,7 +208,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -224,7 +222,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/RenderingContent.php b/clients/algoliasearch-client-php/lib/Model/Search/RenderingContent.php index 9fe3035675..87da316860 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/RenderingContent.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/RenderingContent.php @@ -212,10 +212,8 @@ public function setRedirect($redirect) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -227,7 +225,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -238,7 +236,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -252,7 +250,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/ReplaceAllObjectsResponse.php b/clients/algoliasearch-client-php/lib/Model/Search/ReplaceAllObjectsResponse.php index a3cd0e1720..888561be63 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/ReplaceAllObjectsResponse.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/ReplaceAllObjectsResponse.php @@ -254,10 +254,8 @@ public function setMoveOperationResponse($moveOperationResponse) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -269,7 +267,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -280,7 +278,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -294,7 +292,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/ReplaceSourceResponse.php b/clients/algoliasearch-client-php/lib/Model/Search/ReplaceSourceResponse.php index 4901e40d55..eaf5daf1f8 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/ReplaceSourceResponse.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/ReplaceSourceResponse.php @@ -184,10 +184,8 @@ public function setUpdatedAt($updatedAt) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -199,7 +197,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -210,7 +208,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -224,7 +222,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/Rule.php b/clients/algoliasearch-client-php/lib/Model/Search/Rule.php index b088d749fc..6fc938a98b 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/Rule.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/Rule.php @@ -359,10 +359,8 @@ public function setValidity($validity) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -374,7 +372,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -385,7 +383,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -399,7 +397,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/SaveObjectResponse.php b/clients/algoliasearch-client-php/lib/Model/Search/SaveObjectResponse.php index 4079ae3e18..1cf2804ff8 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/SaveObjectResponse.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/SaveObjectResponse.php @@ -251,10 +251,8 @@ public function setObjectID($objectID) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -266,7 +264,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -277,7 +275,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -291,7 +289,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/SaveSynonymResponse.php b/clients/algoliasearch-client-php/lib/Model/Search/SaveSynonymResponse.php index 04ef20b3b7..089629a1b3 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/SaveSynonymResponse.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/SaveSynonymResponse.php @@ -254,10 +254,8 @@ public function setId($id) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -269,7 +267,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -280,7 +278,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -294,7 +292,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/SearchDictionaryEntriesParams.php b/clients/algoliasearch-client-php/lib/Model/Search/SearchDictionaryEntriesParams.php index f1166c969e..65dc9802b6 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/SearchDictionaryEntriesParams.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/SearchDictionaryEntriesParams.php @@ -304,10 +304,8 @@ public function setLanguage($language) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -319,7 +317,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -330,7 +328,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -344,7 +342,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/SearchDictionaryEntriesResponse.php b/clients/algoliasearch-client-php/lib/Model/Search/SearchDictionaryEntriesResponse.php index 6f24b9b1ca..14b7385e8c 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/SearchDictionaryEntriesResponse.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/SearchDictionaryEntriesResponse.php @@ -297,10 +297,8 @@ public function setNbPages($nbPages) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -312,7 +310,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -323,7 +321,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -337,7 +335,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/SearchForFacetValuesRequest.php b/clients/algoliasearch-client-php/lib/Model/Search/SearchForFacetValuesRequest.php index 103a90033d..d5f2c040ca 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/SearchForFacetValuesRequest.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/SearchForFacetValuesRequest.php @@ -252,10 +252,8 @@ public function setMaxFacetHits($maxFacetHits) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -267,7 +265,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -278,7 +276,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -292,7 +290,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/SearchForFacetValuesResponse.php b/clients/algoliasearch-client-php/lib/Model/Search/SearchForFacetValuesResponse.php index 191c9535aa..fe71cd5d6f 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/SearchForFacetValuesResponse.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/SearchForFacetValuesResponse.php @@ -251,10 +251,8 @@ public function setProcessingTimeMS($processingTimeMS) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -266,7 +264,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -277,7 +275,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -291,7 +289,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/SearchForFacets.php b/clients/algoliasearch-client-php/lib/Model/Search/SearchForFacets.php index 6f2ae87cca..41256e89bc 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/SearchForFacets.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/SearchForFacets.php @@ -2842,10 +2842,8 @@ public function setType($type) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -2857,7 +2855,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -2868,7 +2866,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -2882,7 +2880,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/SearchForHits.php b/clients/algoliasearch-client-php/lib/Model/Search/SearchForHits.php index b9a5911dfe..67c2ebcad4 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/SearchForHits.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/SearchForHits.php @@ -2772,10 +2772,8 @@ public function setType($type) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -2787,7 +2785,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -2798,7 +2796,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -2812,7 +2810,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/SearchMethodParams.php b/clients/algoliasearch-client-php/lib/Model/Search/SearchMethodParams.php index 0e515bed3b..fbe0c2f9c7 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/SearchMethodParams.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/SearchMethodParams.php @@ -216,10 +216,8 @@ public function setStrategy($strategy) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -231,7 +229,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -242,7 +240,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -256,7 +254,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/SearchParams.php b/clients/algoliasearch-client-php/lib/Model/Search/SearchParams.php index ed23074e16..5036fb674e 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/SearchParams.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/SearchParams.php @@ -2704,10 +2704,8 @@ public function setReRankingApplyFilter($reRankingApplyFilter) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -2719,7 +2717,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -2730,7 +2728,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -2744,7 +2742,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/SearchParamsObject.php b/clients/algoliasearch-client-php/lib/Model/Search/SearchParamsObject.php index 78432f0f3e..e3a764d63f 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/SearchParamsObject.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/SearchParamsObject.php @@ -2674,10 +2674,8 @@ public function setReRankingApplyFilter($reRankingApplyFilter) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -2689,7 +2687,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -2700,7 +2698,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -2714,7 +2712,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/SearchParamsString.php b/clients/algoliasearch-client-php/lib/Model/Search/SearchParamsString.php index 56026955b9..1cd200579c 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/SearchParamsString.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/SearchParamsString.php @@ -180,10 +180,8 @@ public function setParams($params) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -195,7 +193,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -206,7 +204,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -220,7 +218,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/SearchQuery.php b/clients/algoliasearch-client-php/lib/Model/Search/SearchQuery.php index f805ddca92..a34defae38 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/SearchQuery.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/SearchQuery.php @@ -2842,10 +2842,8 @@ public function setFacetQuery($facetQuery) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -2857,7 +2855,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -2868,7 +2866,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -2882,7 +2880,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/SearchResponse.php b/clients/algoliasearch-client-php/lib/Model/Search/SearchResponse.php index 81644f9df2..4d6dca5dd6 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/SearchResponse.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/SearchResponse.php @@ -1216,10 +1216,8 @@ public function setParams($params) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -1231,7 +1229,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -1242,7 +1240,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -1256,7 +1254,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/SearchResponses.php b/clients/algoliasearch-client-php/lib/Model/Search/SearchResponses.php index 7ee4be8262..dce60d6ba6 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/SearchResponses.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/SearchResponses.php @@ -184,10 +184,8 @@ public function setResults($results) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -199,7 +197,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -210,7 +208,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -224,7 +222,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/SearchResult.php b/clients/algoliasearch-client-php/lib/Model/Search/SearchResult.php index f47dc96a02..33f8029645 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/SearchResult.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/SearchResult.php @@ -1250,10 +1250,8 @@ public function setFacetHits($facetHits) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -1265,7 +1263,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -1276,7 +1274,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -1290,7 +1288,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/SearchRulesParams.php b/clients/algoliasearch-client-php/lib/Model/Search/SearchRulesParams.php index 4d8b0267ca..30fc87f01f 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/SearchRulesParams.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/SearchRulesParams.php @@ -365,10 +365,8 @@ public function setEnabled($enabled) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -380,7 +378,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -391,7 +389,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -405,7 +403,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/SearchRulesResponse.php b/clients/algoliasearch-client-php/lib/Model/Search/SearchRulesResponse.php index 4a420a0841..8d26515f5f 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/SearchRulesResponse.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/SearchRulesResponse.php @@ -289,10 +289,8 @@ public function setNbPages($nbPages) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -304,7 +302,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -315,7 +313,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -329,7 +327,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/SearchSynonymsParams.php b/clients/algoliasearch-client-php/lib/Model/Search/SearchSynonymsParams.php index d6cc2b6979..23e343f8b9 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/SearchSynonymsParams.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/SearchSynonymsParams.php @@ -299,10 +299,8 @@ public function setHitsPerPage($hitsPerPage) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -314,7 +312,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -325,7 +323,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -339,7 +337,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/SearchSynonymsResponse.php b/clients/algoliasearch-client-php/lib/Model/Search/SearchSynonymsResponse.php index ae79ab4b9c..d3907af045 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/SearchSynonymsResponse.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/SearchSynonymsResponse.php @@ -219,10 +219,8 @@ public function setNbHits($nbHits) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -234,7 +232,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -245,7 +243,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -259,7 +257,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/SearchUserIdsParams.php b/clients/algoliasearch-client-php/lib/Model/Search/SearchUserIdsParams.php index cd4774dc5d..d53e93e440 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/SearchUserIdsParams.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/SearchUserIdsParams.php @@ -304,10 +304,8 @@ public function setHitsPerPage($hitsPerPage) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -319,7 +317,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -330,7 +328,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -344,7 +342,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/SearchUserIdsResponse.php b/clients/algoliasearch-client-php/lib/Model/Search/SearchUserIdsResponse.php index cc42574be2..79b53f04e5 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/SearchUserIdsResponse.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/SearchUserIdsResponse.php @@ -349,10 +349,8 @@ public function setUpdatedAt($updatedAt) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -364,7 +362,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -375,7 +373,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -389,7 +387,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/SecuredApiKeyRestrictions.php b/clients/algoliasearch-client-php/lib/Model/Search/SecuredApiKeyRestrictions.php index 4cede6949b..c8b658994b 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/SecuredApiKeyRestrictions.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/SecuredApiKeyRestrictions.php @@ -338,10 +338,8 @@ public function setUserToken($userToken) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -353,7 +351,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -364,7 +362,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -378,7 +376,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/SemanticSearch.php b/clients/algoliasearch-client-php/lib/Model/Search/SemanticSearch.php index 48dfc7eee0..8392b33362 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/SemanticSearch.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/SemanticSearch.php @@ -180,10 +180,8 @@ public function setEventSources($eventSources) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -195,7 +193,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -206,7 +204,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -220,7 +218,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/SettingsResponse.php b/clients/algoliasearch-client-php/lib/Model/Search/SettingsResponse.php index 156d47948e..95be90ae6a 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/SettingsResponse.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/SettingsResponse.php @@ -2186,10 +2186,8 @@ public function setPrimary($primary) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -2201,7 +2199,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -2212,7 +2210,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -2226,7 +2224,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/SnippetResult.php b/clients/algoliasearch-client-php/lib/Model/Search/SnippetResult.php index d28a8e8259..e1a73a134c 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/SnippetResult.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/SnippetResult.php @@ -219,10 +219,8 @@ public function setMatchLevel($matchLevel) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -234,7 +232,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -245,7 +243,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -259,7 +257,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/SnippetResultOption.php b/clients/algoliasearch-client-php/lib/Model/Search/SnippetResultOption.php index fa9793d0df..89bedd1aac 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/SnippetResultOption.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/SnippetResultOption.php @@ -221,10 +221,8 @@ public function setMatchLevel($matchLevel) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -236,7 +234,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -247,7 +245,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -261,7 +259,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/Source.php b/clients/algoliasearch-client-php/lib/Model/Search/Source.php index 9d4de56f36..99c2cd9da8 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/Source.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/Source.php @@ -218,10 +218,8 @@ public function setDescription($description) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -233,7 +231,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -244,7 +242,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -258,7 +256,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/StandardEntries.php b/clients/algoliasearch-client-php/lib/Model/Search/StandardEntries.php index 4204044958..db98b2d125 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/StandardEntries.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/StandardEntries.php @@ -244,10 +244,8 @@ public function setCompounds($compounds) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -259,7 +257,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -270,7 +268,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -284,7 +282,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/SynonymHit.php b/clients/algoliasearch-client-php/lib/Model/Search/SynonymHit.php index 4a9211225d..ab83a11add 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/SynonymHit.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/SynonymHit.php @@ -413,10 +413,8 @@ public function setReplacements($replacements) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -428,7 +426,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -439,7 +437,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -453,7 +451,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/TagFilters.php b/clients/algoliasearch-client-php/lib/Model/Search/TagFilters.php index ad27792a59..9e4eb691bb 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/TagFilters.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/TagFilters.php @@ -146,10 +146,8 @@ public function valid() * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -161,7 +159,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -172,7 +170,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -186,7 +184,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/TimeRange.php b/clients/algoliasearch-client-php/lib/Model/Search/TimeRange.php index 0ae564ec5d..1bd03e5c4c 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/TimeRange.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/TimeRange.php @@ -219,10 +219,8 @@ public function setUntil($until) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -234,7 +232,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -245,7 +243,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -259,7 +257,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/TypoTolerance.php b/clients/algoliasearch-client-php/lib/Model/Search/TypoTolerance.php index d981fb7caf..79dcbc01d6 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/TypoTolerance.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/TypoTolerance.php @@ -146,10 +146,8 @@ public function valid() * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -161,7 +159,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -172,7 +170,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -186,7 +184,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/UpdateApiKeyResponse.php b/clients/algoliasearch-client-php/lib/Model/Search/UpdateApiKeyResponse.php index fe28a571eb..20af05a9b6 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/UpdateApiKeyResponse.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/UpdateApiKeyResponse.php @@ -219,10 +219,8 @@ public function setUpdatedAt($updatedAt) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -234,7 +232,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -245,7 +243,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -259,7 +257,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/UpdatedAtResponse.php b/clients/algoliasearch-client-php/lib/Model/Search/UpdatedAtResponse.php index f1cc9ab8c4..9919a96c34 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/UpdatedAtResponse.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/UpdatedAtResponse.php @@ -221,10 +221,8 @@ public function setUpdatedAt($updatedAt) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -236,7 +234,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -247,7 +245,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -261,7 +259,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/UpdatedAtWithObjectIdResponse.php b/clients/algoliasearch-client-php/lib/Model/Search/UpdatedAtWithObjectIdResponse.php index 45b834736a..52840ff7b7 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/UpdatedAtWithObjectIdResponse.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/UpdatedAtWithObjectIdResponse.php @@ -244,10 +244,8 @@ public function setObjectID($objectID) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -259,7 +257,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -270,7 +268,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -284,7 +282,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/UpdatedRuleResponse.php b/clients/algoliasearch-client-php/lib/Model/Search/UpdatedRuleResponse.php index a451586ebf..034c3ba26c 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/UpdatedRuleResponse.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/UpdatedRuleResponse.php @@ -254,10 +254,8 @@ public function setTaskID($taskID) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -269,7 +267,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -280,7 +278,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -294,7 +292,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/UserHighlightResult.php b/clients/algoliasearch-client-php/lib/Model/Search/UserHighlightResult.php index 3648eb4a0c..d268d38855 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/UserHighlightResult.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/UserHighlightResult.php @@ -219,10 +219,8 @@ public function setClusterName($clusterName) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -234,7 +232,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -245,7 +243,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -259,7 +257,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/UserHit.php b/clients/algoliasearch-client-php/lib/Model/Search/UserHit.php index 34a16dca16..44ba2929f2 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/UserHit.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/UserHit.php @@ -367,10 +367,8 @@ public function setHighlightResult($highlightResult) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -382,7 +380,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -393,7 +391,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -407,7 +405,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/UserId.php b/clients/algoliasearch-client-php/lib/Model/Search/UserId.php index aaf4947f50..b6262796cf 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/UserId.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/UserId.php @@ -299,10 +299,8 @@ public function setDataSize($dataSize) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -314,7 +312,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -325,7 +323,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -339,7 +337,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Search/Value.php b/clients/algoliasearch-client-php/lib/Model/Search/Value.php index faf781f8a9..d123105fc0 100644 --- a/clients/algoliasearch-client-php/lib/Model/Search/Value.php +++ b/clients/algoliasearch-client-php/lib/Model/Search/Value.php @@ -242,10 +242,8 @@ public function setHide($hide) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -257,7 +255,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -268,7 +266,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -282,7 +280,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Usage/ErrorItem.php b/clients/algoliasearch-client-php/lib/Model/Usage/ErrorItem.php index 79d573d556..53a152ebe5 100644 --- a/clients/algoliasearch-client-php/lib/Model/Usage/ErrorItem.php +++ b/clients/algoliasearch-client-php/lib/Model/Usage/ErrorItem.php @@ -280,10 +280,8 @@ public function setPosition($position) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -295,7 +293,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -306,7 +304,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -320,7 +318,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Usage/ForbiddenError.php b/clients/algoliasearch-client-php/lib/Model/Usage/ForbiddenError.php index cb5a60efbf..6ae000617f 100644 --- a/clients/algoliasearch-client-php/lib/Model/Usage/ForbiddenError.php +++ b/clients/algoliasearch-client-php/lib/Model/Usage/ForbiddenError.php @@ -242,10 +242,8 @@ public function setErrors($errors) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -257,7 +255,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -268,7 +266,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -282,7 +280,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Usage/IndexUsage.php b/clients/algoliasearch-client-php/lib/Model/Usage/IndexUsage.php index a322b46cfc..08a5732cc5 100644 --- a/clients/algoliasearch-client-php/lib/Model/Usage/IndexUsage.php +++ b/clients/algoliasearch-client-php/lib/Model/Usage/IndexUsage.php @@ -178,10 +178,8 @@ public function setStatistics($statistics) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -193,7 +191,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -204,7 +202,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -218,7 +216,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Usage/InvalidRequestError.php b/clients/algoliasearch-client-php/lib/Model/Usage/InvalidRequestError.php index 288275c3de..e935ed9680 100644 --- a/clients/algoliasearch-client-php/lib/Model/Usage/InvalidRequestError.php +++ b/clients/algoliasearch-client-php/lib/Model/Usage/InvalidRequestError.php @@ -242,10 +242,8 @@ public function setErrors($errors) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -257,7 +255,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -268,7 +266,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -282,7 +280,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Usage/StatisticEntry.php b/clients/algoliasearch-client-php/lib/Model/Usage/StatisticEntry.php index 683847154b..fe18b38b33 100644 --- a/clients/algoliasearch-client-php/lib/Model/Usage/StatisticEntry.php +++ b/clients/algoliasearch-client-php/lib/Model/Usage/StatisticEntry.php @@ -210,10 +210,8 @@ public function setV($v) * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -225,7 +223,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -236,7 +234,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -250,7 +248,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/clients/algoliasearch-client-php/lib/Model/Usage/StatisticValue.php b/clients/algoliasearch-client-php/lib/Model/Usage/StatisticValue.php index 96f9c7b54f..c7d64e8af0 100644 --- a/clients/algoliasearch-client-php/lib/Model/Usage/StatisticValue.php +++ b/clients/algoliasearch-client-php/lib/Model/Usage/StatisticValue.php @@ -144,10 +144,8 @@ public function valid() * Returns true if offset exists. False otherwise. * * @param int $offset Offset - * - * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -159,7 +157,7 @@ public function offsetExists($offset) * * @return null|mixed */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -170,7 +168,7 @@ public function offsetGet($offset) * @param null|int $offset Offset * @param mixed $value Value to be set */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -184,7 +182,7 @@ public function offsetSet($offset, $value) * * @param int $offset Offset */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); } diff --git a/templates/php/model_generic.mustache b/templates/php/model_generic.mustache index 78b9ceb376..e20b3f100d 100644 --- a/templates/php/model_generic.mustache +++ b/templates/php/model_generic.mustache @@ -346,7 +346,7 @@ class {{classname}} extends \Algolia\AlgoliaSearch\Model\AbstractModel {{^parent * * @return boolean */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return isset($this->container[$offset]); } @@ -358,7 +358,7 @@ class {{classname}} extends \Algolia\AlgoliaSearch\Model\AbstractModel {{^parent * * @return mixed|null */ - public function offsetGet($offset) + public function offsetGet($offset): mixed { return $this->container[$offset] ?? null; } @@ -371,7 +371,7 @@ class {{classname}} extends \Algolia\AlgoliaSearch\Model\AbstractModel {{^parent * * @return void */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { if (is_null($offset)) { $this->container[] = $value; @@ -387,7 +387,7 @@ class {{classname}} extends \Algolia\AlgoliaSearch\Model\AbstractModel {{^parent * * @return void */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->container[$offset]); }