Skip to content

Commit 7808e10

Browse files
algolia-botFluf22
andcommitted
fix(clients): processingTimeMS should be optional (generated)
algolia/api-clients-automation#5004 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Thomas Raffray <[email protected]>
1 parent 8efbc30 commit 7808e10

File tree

5 files changed

+10
-25
lines changed

5 files changed

+10
-25
lines changed

lib/Model/Composition/SearchResultsItem.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -403,9 +403,6 @@ public function listInvalidProperties()
403403
{
404404
$invalidProperties = [];
405405

406-
if (!isset($this->container['processingTimeMS']) || null === $this->container['processingTimeMS']) {
407-
$invalidProperties[] = "'processingTimeMS' can't be null";
408-
}
409406
if (!isset($this->container['page']) || null === $this->container['page']) {
410407
$invalidProperties[] = "'page' can't be null";
411408
}
@@ -844,7 +841,7 @@ public function setParsedQuery($parsedQuery)
844841
/**
845842
* Gets processingTimeMS.
846843
*
847-
* @return int
844+
* @return null|int
848845
*/
849846
public function getProcessingTimeMS()
850847
{
@@ -854,7 +851,7 @@ public function getProcessingTimeMS()
854851
/**
855852
* Sets processingTimeMS.
856853
*
857-
* @param int $processingTimeMS time the server took to process the request, in milliseconds
854+
* @param null|int $processingTimeMS time the server took to process the request, in milliseconds
858855
*
859856
* @return self
860857
*/

lib/Model/Recommend/RecommendationsResults.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -379,9 +379,6 @@ public function listInvalidProperties()
379379
{
380380
$invalidProperties = [];
381381

382-
if (!isset($this->container['processingTimeMS']) || null === $this->container['processingTimeMS']) {
383-
$invalidProperties[] = "'processingTimeMS' can't be null";
384-
}
385382
if (!isset($this->container['hits']) || null === $this->container['hits']) {
386383
$invalidProperties[] = "'hits' can't be null";
387384
}
@@ -799,7 +796,7 @@ public function setParsedQuery($parsedQuery)
799796
/**
800797
* Gets processingTimeMS.
801798
*
802-
* @return int
799+
* @return null|int
803800
*/
804801
public function getProcessingTimeMS()
805802
{
@@ -809,7 +806,7 @@ public function getProcessingTimeMS()
809806
/**
810807
* Sets processingTimeMS.
811808
*
812-
* @param int $processingTimeMS time the server took to process the request, in milliseconds
809+
* @param null|int $processingTimeMS time the server took to process the request, in milliseconds
813810
*
814811
* @return self
815812
*/

lib/Model/Search/BrowseResponse.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -403,9 +403,6 @@ public function listInvalidProperties()
403403
{
404404
$invalidProperties = [];
405405

406-
if (!isset($this->container['processingTimeMS']) || null === $this->container['processingTimeMS']) {
407-
$invalidProperties[] = "'processingTimeMS' can't be null";
408-
}
409406
if (!isset($this->container['hits']) || null === $this->container['hits']) {
410407
$invalidProperties[] = "'hits' can't be null";
411408
}
@@ -829,7 +826,7 @@ public function setParsedQuery($parsedQuery)
829826
/**
830827
* Gets processingTimeMS.
831828
*
832-
* @return int
829+
* @return null|int
833830
*/
834831
public function getProcessingTimeMS()
835832
{
@@ -839,7 +836,7 @@ public function getProcessingTimeMS()
839836
/**
840837
* Sets processingTimeMS.
841838
*
842-
* @param int $processingTimeMS time the server took to process the request, in milliseconds
839+
* @param null|int $processingTimeMS time the server took to process the request, in milliseconds
843840
*
844841
* @return self
845842
*/

lib/Model/Search/SearchResponse.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -395,9 +395,6 @@ public function listInvalidProperties()
395395
{
396396
$invalidProperties = [];
397397

398-
if (!isset($this->container['processingTimeMS']) || null === $this->container['processingTimeMS']) {
399-
$invalidProperties[] = "'processingTimeMS' can't be null";
400-
}
401398
if (!isset($this->container['hits']) || null === $this->container['hits']) {
402399
$invalidProperties[] = "'hits' can't be null";
403400
}
@@ -821,7 +818,7 @@ public function setParsedQuery($parsedQuery)
821818
/**
822819
* Gets processingTimeMS.
823820
*
824-
* @return int
821+
* @return null|int
825822
*/
826823
public function getProcessingTimeMS()
827824
{
@@ -831,7 +828,7 @@ public function getProcessingTimeMS()
831828
/**
832829
* Sets processingTimeMS.
833830
*
834-
* @param int $processingTimeMS time the server took to process the request, in milliseconds
831+
* @param null|int $processingTimeMS time the server took to process the request, in milliseconds
835832
*
836833
* @return self
837834
*/

lib/Model/Search/SearchResult.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -406,9 +406,6 @@ public function listInvalidProperties()
406406
if (!isset($this->container['exhaustiveFacetsCount']) || null === $this->container['exhaustiveFacetsCount']) {
407407
$invalidProperties[] = "'exhaustiveFacetsCount' can't be null";
408408
}
409-
if (!isset($this->container['processingTimeMS']) || null === $this->container['processingTimeMS']) {
410-
$invalidProperties[] = "'processingTimeMS' can't be null";
411-
}
412409
if (!isset($this->container['hits']) || null === $this->container['hits']) {
413410
$invalidProperties[] = "'hits' can't be null";
414411
}
@@ -831,7 +828,7 @@ public function setParsedQuery($parsedQuery)
831828
/**
832829
* Gets processingTimeMS.
833830
*
834-
* @return int
831+
* @return null|int
835832
*/
836833
public function getProcessingTimeMS()
837834
{
@@ -841,7 +838,7 @@ public function getProcessingTimeMS()
841838
/**
842839
* Sets processingTimeMS.
843840
*
844-
* @param int $processingTimeMS time the server took to process the request, in milliseconds
841+
* @param null|int $processingTimeMS time the server took to process the request, in milliseconds
845842
*
846843
* @return self
847844
*/

0 commit comments

Comments
 (0)