Skip to content

Commit c08b842

Browse files
algolia-botrenovate[bot]shortcuts
committed
chore(deps): dependencies 2025-01-06 [skip-bc] (generated)
algolia/api-clients-automation#4299 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Algolia Bot <[email protected]> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Clément Vannicatte <[email protected]>
1 parent d0537e4 commit c08b842

File tree

4 files changed

+40
-40
lines changed

4 files changed

+40
-40
lines changed

lib/Api/PersonalizationClient.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -367,8 +367,8 @@ public function getUserTokenProfile($userToken, $requestOptions = [])
367367
* - recommendation
368368
*
369369
* @param array $personalizationStrategyParams personalizationStrategyParams (required)
370-
* - $personalizationStrategyParams['eventScoring'] => (array) Scores associated with each event. The higher the scores, the higher the impact of those events on the personalization of search results. (required)
371-
* - $personalizationStrategyParams['facetScoring'] => (array) Scores associated with each facet. The higher the scores, the higher the impact of those events on the personalization of search results. (required)
370+
* - $personalizationStrategyParams['eventsScoring'] => (array) Scores associated with each event. The higher the scores, the higher the impact of those events on the personalization of search results. (required)
371+
* - $personalizationStrategyParams['facetsScoring'] => (array) Scores associated with each facet. The higher the scores, the higher the impact of those events on the personalization of search results. (required)
372372
* - $personalizationStrategyParams['personalizationImpact'] => (int) Impact of personalization on the search results. If set to 0, personalization has no impact on the search results. (required)
373373
*
374374
* @see PersonalizationStrategyParams

lib/Model/Personalization/EventScoring.php lib/Model/Personalization/EventsScoring.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
use Algolia\AlgoliaSearch\Model\ModelInterface;
99

1010
/**
11-
* EventScoring Class Doc Comment.
11+
* EventsScoring Class Doc Comment.
1212
*
1313
* @category Class
1414
*/
15-
class EventScoring extends AbstractModel implements ModelInterface, \ArrayAccess, \JsonSerializable
15+
class EventsScoring extends AbstractModel implements ModelInterface, \ArrayAccess, \JsonSerializable
1616
{
1717
/**
1818
* Array of property to type mappings. Used for (de)serialization.

lib/Model/Personalization/FacetScoring.php lib/Model/Personalization/FacetsScoring.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
use Algolia\AlgoliaSearch\Model\ModelInterface;
99

1010
/**
11-
* FacetScoring Class Doc Comment.
11+
* FacetsScoring Class Doc Comment.
1212
*
1313
* @category Class
1414
*/
15-
class FacetScoring extends AbstractModel implements ModelInterface, \ArrayAccess, \JsonSerializable
15+
class FacetsScoring extends AbstractModel implements ModelInterface, \ArrayAccess, \JsonSerializable
1616
{
1717
/**
1818
* Array of property to type mappings. Used for (de)serialization.

lib/Model/Personalization/PersonalizationStrategyParams.php

+34-34
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ class PersonalizationStrategyParams extends AbstractModel implements ModelInterf
2020
* @var string[]
2121
*/
2222
protected static $modelTypes = [
23-
'eventScoring' => '\Algolia\AlgoliaSearch\Model\Personalization\EventScoring[]',
24-
'facetScoring' => '\Algolia\AlgoliaSearch\Model\Personalization\FacetScoring[]',
23+
'eventsScoring' => '\Algolia\AlgoliaSearch\Model\Personalization\EventsScoring[]',
24+
'facetsScoring' => '\Algolia\AlgoliaSearch\Model\Personalization\FacetsScoring[]',
2525
'personalizationImpact' => 'int',
2626
];
2727

@@ -31,8 +31,8 @@ class PersonalizationStrategyParams extends AbstractModel implements ModelInterf
3131
* @var string[]
3232
*/
3333
protected static $modelFormats = [
34-
'eventScoring' => null,
35-
'facetScoring' => null,
34+
'eventsScoring' => null,
35+
'facetsScoring' => null,
3636
'personalizationImpact' => null,
3737
];
3838

@@ -43,8 +43,8 @@ class PersonalizationStrategyParams extends AbstractModel implements ModelInterf
4343
* @var string[]
4444
*/
4545
protected static $attributeMap = [
46-
'eventScoring' => 'eventScoring',
47-
'facetScoring' => 'facetScoring',
46+
'eventsScoring' => 'eventsScoring',
47+
'facetsScoring' => 'facetsScoring',
4848
'personalizationImpact' => 'personalizationImpact',
4949
];
5050

@@ -54,8 +54,8 @@ class PersonalizationStrategyParams extends AbstractModel implements ModelInterf
5454
* @var string[]
5555
*/
5656
protected static $setters = [
57-
'eventScoring' => 'setEventScoring',
58-
'facetScoring' => 'setFacetScoring',
57+
'eventsScoring' => 'setEventsScoring',
58+
'facetsScoring' => 'setFacetsScoring',
5959
'personalizationImpact' => 'setPersonalizationImpact',
6060
];
6161

@@ -65,8 +65,8 @@ class PersonalizationStrategyParams extends AbstractModel implements ModelInterf
6565
* @var string[]
6666
*/
6767
protected static $getters = [
68-
'eventScoring' => 'getEventScoring',
69-
'facetScoring' => 'getFacetScoring',
68+
'eventsScoring' => 'getEventsScoring',
69+
'facetsScoring' => 'getFacetsScoring',
7070
'personalizationImpact' => 'getPersonalizationImpact',
7171
];
7272

@@ -84,11 +84,11 @@ class PersonalizationStrategyParams extends AbstractModel implements ModelInterf
8484
*/
8585
public function __construct(?array $data = null)
8686
{
87-
if (isset($data['eventScoring'])) {
88-
$this->container['eventScoring'] = $data['eventScoring'];
87+
if (isset($data['eventsScoring'])) {
88+
$this->container['eventsScoring'] = $data['eventsScoring'];
8989
}
90-
if (isset($data['facetScoring'])) {
91-
$this->container['facetScoring'] = $data['facetScoring'];
90+
if (isset($data['facetsScoring'])) {
91+
$this->container['facetsScoring'] = $data['facetsScoring'];
9292
}
9393
if (isset($data['personalizationImpact'])) {
9494
$this->container['personalizationImpact'] = $data['personalizationImpact'];
@@ -155,11 +155,11 @@ public function listInvalidProperties()
155155
{
156156
$invalidProperties = [];
157157

158-
if (!isset($this->container['eventScoring']) || null === $this->container['eventScoring']) {
159-
$invalidProperties[] = "'eventScoring' can't be null";
158+
if (!isset($this->container['eventsScoring']) || null === $this->container['eventsScoring']) {
159+
$invalidProperties[] = "'eventsScoring' can't be null";
160160
}
161-
if (!isset($this->container['facetScoring']) || null === $this->container['facetScoring']) {
162-
$invalidProperties[] = "'facetScoring' can't be null";
161+
if (!isset($this->container['facetsScoring']) || null === $this->container['facetsScoring']) {
162+
$invalidProperties[] = "'facetsScoring' can't be null";
163163
}
164164
if (!isset($this->container['personalizationImpact']) || null === $this->container['personalizationImpact']) {
165165
$invalidProperties[] = "'personalizationImpact' can't be null";
@@ -180,49 +180,49 @@ public function valid()
180180
}
181181

182182
/**
183-
* Gets eventScoring.
183+
* Gets eventsScoring.
184184
*
185-
* @return \Algolia\AlgoliaSearch\Model\Personalization\EventScoring[]
185+
* @return \Algolia\AlgoliaSearch\Model\Personalization\EventsScoring[]
186186
*/
187-
public function getEventScoring()
187+
public function getEventsScoring()
188188
{
189-
return $this->container['eventScoring'] ?? null;
189+
return $this->container['eventsScoring'] ?? null;
190190
}
191191

192192
/**
193-
* Sets eventScoring.
193+
* Sets eventsScoring.
194194
*
195-
* @param \Algolia\AlgoliaSearch\Model\Personalization\EventScoring[] $eventScoring Scores associated with each event. The higher the scores, the higher the impact of those events on the personalization of search results.
195+
* @param \Algolia\AlgoliaSearch\Model\Personalization\EventsScoring[] $eventsScoring Scores associated with each event. The higher the scores, the higher the impact of those events on the personalization of search results.
196196
*
197197
* @return self
198198
*/
199-
public function setEventScoring($eventScoring)
199+
public function setEventsScoring($eventsScoring)
200200
{
201-
$this->container['eventScoring'] = $eventScoring;
201+
$this->container['eventsScoring'] = $eventsScoring;
202202

203203
return $this;
204204
}
205205

206206
/**
207-
* Gets facetScoring.
207+
* Gets facetsScoring.
208208
*
209-
* @return \Algolia\AlgoliaSearch\Model\Personalization\FacetScoring[]
209+
* @return \Algolia\AlgoliaSearch\Model\Personalization\FacetsScoring[]
210210
*/
211-
public function getFacetScoring()
211+
public function getFacetsScoring()
212212
{
213-
return $this->container['facetScoring'] ?? null;
213+
return $this->container['facetsScoring'] ?? null;
214214
}
215215

216216
/**
217-
* Sets facetScoring.
217+
* Sets facetsScoring.
218218
*
219-
* @param \Algolia\AlgoliaSearch\Model\Personalization\FacetScoring[] $facetScoring Scores associated with each facet. The higher the scores, the higher the impact of those events on the personalization of search results.
219+
* @param \Algolia\AlgoliaSearch\Model\Personalization\FacetsScoring[] $facetsScoring Scores associated with each facet. The higher the scores, the higher the impact of those events on the personalization of search results.
220220
*
221221
* @return self
222222
*/
223-
public function setFacetScoring($facetScoring)
223+
public function setFacetsScoring($facetsScoring)
224224
{
225-
$this->container['facetScoring'] = $facetScoring;
225+
$this->container['facetsScoring'] = $facetsScoring;
226226

227227
return $this;
228228
}

0 commit comments

Comments
 (0)