Skip to content

Commit

Permalink
fix(specs): recommend is optional (generated)
Browse files Browse the repository at this point in the history
  • Loading branch information
algolia-bot committed Oct 14, 2024
1 parent b83b2c4 commit 8b1a713
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 15 deletions.
7 changes: 2 additions & 5 deletions lib/Model/Recommend/RecommendHit.php
Original file line number Diff line number Diff line change
Expand Up @@ -184,9 +184,6 @@ public function listInvalidProperties()
if (!isset($this->container['objectID']) || null === $this->container['objectID']) {
$invalidProperties[] = "'objectID' can't be null";
}
if (!isset($this->container['score']) || null === $this->container['score']) {
$invalidProperties[] = "'score' can't be null";
}

return $invalidProperties;
}
Expand Down Expand Up @@ -325,7 +322,7 @@ public function setDistinctSeqID($distinctSeqID)
/**
* Gets score.
*
* @return float
* @return null|float
*/
public function getScore()
{
Expand All @@ -335,7 +332,7 @@ public function getScore()
/**
* Sets score.
*
* @param float $score recommendation score
* @param null|float $score recommendation score
*
* @return self
*/
Expand Down
7 changes: 2 additions & 5 deletions lib/Model/Recommend/RecommendationsHit.php
Original file line number Diff line number Diff line change
Expand Up @@ -198,9 +198,6 @@ public function listInvalidProperties()
if (!isset($this->container['objectID']) || null === $this->container['objectID']) {
$invalidProperties[] = "'objectID' can't be null";
}
if (!isset($this->container['score']) || null === $this->container['score']) {
$invalidProperties[] = "'score' can't be null";
}
if (!isset($this->container['facetName']) || null === $this->container['facetName']) {
$invalidProperties[] = "'facetName' can't be null";
}
Expand Down Expand Up @@ -345,7 +342,7 @@ public function setDistinctSeqID($distinctSeqID)
/**
* Gets score.
*
* @return float
* @return null|float
*/
public function getScore()
{
Expand All @@ -355,7 +352,7 @@ public function getScore()
/**
* Sets score.
*
* @param float $score recommendation score
* @param null|float $score recommendation score
*
* @return self
*/
Expand Down
7 changes: 2 additions & 5 deletions lib/Model/Recommend/TrendingFacetHit.php
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,6 @@ public function listInvalidProperties()
{
$invalidProperties = [];

if (!isset($this->container['score']) || null === $this->container['score']) {
$invalidProperties[] = "'score' can't be null";
}
if (!isset($this->container['facetName']) || null === $this->container['facetName']) {
$invalidProperties[] = "'facetName' can't be null";
}
Expand All @@ -184,7 +181,7 @@ public function valid()
/**
* Gets score.
*
* @return float
* @return null|float
*/
public function getScore()
{
Expand All @@ -194,7 +191,7 @@ public function getScore()
/**
* Sets score.
*
* @param float $score recommendation score
* @param null|float $score recommendation score
*
* @return self
*/
Expand Down

0 comments on commit 8b1a713

Please sign in to comment.