This class seems to be duplicated in your project.
Duplicated code is one of the most pungent code smells. If you need to duplicate
the same code in three or more different places, we strongly encourage you to
look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.
Loading history...
6
{
7
/**
8
* @var string[]
9
*/
10
private $bringToTop = array();
11
12
/**
13
* @var bool
14
*/
15
private $augmentBiases = false;
16
17
/**
18
* @var float|null
19
*/
20
private $influence = null;
21
22
/**
23
* @var Bias[]
24
*/
25
private $biases = array();
26
27
28
/**
29
* @return string[] The list of product IDs
30
*/
31
public function getBringToTop()
32
{
33
return $this->bringToTop;
34
}
35
36
/**
37
* A list of product IDs to bring to the top of the result set. This list
38
* will ensure that the products are included in the result set and appear in the order
39
* defined.
40
*
41
* @param string[] $bringToTop The list of productIds.
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.