Skip to content

Commit e206103

Browse files
algolia-botcdhawke
andcommitted
feat(specs): abtesting winsorizedAmount (generated)
algolia/api-clients-automation#5053 Co-authored-by: algolia-bot <accounts+algolia-api-client-bot@algolia.com> Co-authored-by: Christopher Hawke <69921547+cdhawke@users.noreply.github.com>
1 parent 1086bc7 commit e206103

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

lib/Model/Abtesting/Currency.php

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ class Currency extends AbstractModel implements ModelInterface, \ArrayAccess, \J
2424
'revenue' => 'float',
2525
'mean' => 'float',
2626
'standardDeviation' => 'float',
27+
'winsorizedAmount' => 'float',
2728
];
2829

2930
/**
@@ -36,6 +37,7 @@ class Currency extends AbstractModel implements ModelInterface, \ArrayAccess, \J
3637
'revenue' => 'double',
3738
'mean' => 'double',
3839
'standardDeviation' => 'double',
40+
'winsorizedAmount' => 'double',
3941
];
4042

4143
/**
@@ -49,6 +51,7 @@ class Currency extends AbstractModel implements ModelInterface, \ArrayAccess, \J
4951
'revenue' => 'revenue',
5052
'mean' => 'mean',
5153
'standardDeviation' => 'standardDeviation',
54+
'winsorizedAmount' => 'winsorizedAmount',
5255
];
5356

5457
/**
@@ -61,6 +64,7 @@ class Currency extends AbstractModel implements ModelInterface, \ArrayAccess, \J
6164
'revenue' => 'setRevenue',
6265
'mean' => 'setMean',
6366
'standardDeviation' => 'setStandardDeviation',
67+
'winsorizedAmount' => 'setWinsorizedAmount',
6468
];
6569

6670
/**
@@ -73,6 +77,7 @@ class Currency extends AbstractModel implements ModelInterface, \ArrayAccess, \J
7377
'revenue' => 'getRevenue',
7478
'mean' => 'getMean',
7579
'standardDeviation' => 'getStandardDeviation',
80+
'winsorizedAmount' => 'getWinsorizedAmount',
7681
];
7782

7883
/**
@@ -101,6 +106,9 @@ public function __construct(?array $data = null)
101106
if (isset($data['standardDeviation'])) {
102107
$this->container['standardDeviation'] = $data['standardDeviation'];
103108
}
109+
if (isset($data['winsorizedAmount'])) {
110+
$this->container['winsorizedAmount'] = $data['winsorizedAmount'];
111+
}
104112
}
105113

106114
/**
@@ -271,6 +279,30 @@ public function setStandardDeviation($standardDeviation)
271279
return $this;
272280
}
273281

282+
/**
283+
* Gets winsorizedAmount.
284+
*
285+
* @return null|float
286+
*/
287+
public function getWinsorizedAmount()
288+
{
289+
return $this->container['winsorizedAmount'] ?? null;
290+
}
291+
292+
/**
293+
* Sets winsorizedAmount.
294+
*
295+
* @param null|float $winsorizedAmount the amount of revenue for this currency that was removed after capping purchase amounts to the 95th percentile
296+
*
297+
* @return self
298+
*/
299+
public function setWinsorizedAmount($winsorizedAmount)
300+
{
301+
$this->container['winsorizedAmount'] = $winsorizedAmount;
302+
303+
return $this;
304+
}
305+
274306
/**
275307
* Returns true if offset exists. False otherwise.
276308
*

0 commit comments

Comments
 (0)