| @@ 5-107 (lines=103) @@ | ||
| 2 | ||
| 3 | namespace GroupByInc\API\Model;  | 
                                |
| 4 | ||
| 5 | class Biasing  | 
                                |
| 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.  | 
                                |
| 42 | *  | 
                                |
| 43 | * @return Biasing  | 
                                |
| 44 | */  | 
                                |
| 45 | public function setBringToTop($bringToTop)  | 
                                |
| 46 |     { | 
                                |
| 47 | $this->bringToTop = $bringToTop;  | 
                                |
| 48 | return $this;  | 
                                |
| 49 | }  | 
                                |
| 50 | ||
| 51 | /**  | 
                                |
| 52 | * @return boolean  | 
                                |
| 53 | */  | 
                                |
| 54 | public function isAugmentBiases()  | 
                                |
| 55 |     { | 
                                |
| 56 | return $this->augmentBiases;  | 
                                |
| 57 | }  | 
                                |
| 58 | ||
| 59 | /**  | 
                                |
| 60 | * @param boolean $augmentBiases  | 
                                |
| 61 | *  | 
                                |
| 62 | * @return Biasing  | 
                                |
| 63 | */  | 
                                |
| 64 | public function setAugmentBiases($augmentBiases)  | 
                                |
| 65 |     { | 
                                |
| 66 | $this->augmentBiases = $augmentBiases;  | 
                                |
| 67 | return $this;  | 
                                |
| 68 | }  | 
                                |
| 69 | ||
| 70 | /**  | 
                                |
| 71 | * @return float|null  | 
                                |
| 72 | */  | 
                                |
| 73 | public function getInfluence()  | 
                                |
| 74 |     { | 
                                |
| 75 | return $this->influence;  | 
                                |
| 76 | }  | 
                                |
| 77 | ||
| 78 | /**  | 
                                |
| 79 | * @param float|null $influence  | 
                                |
| 80 | *  | 
                                |
| 81 | * @return Biasing  | 
                                |
| 82 | */  | 
                                |
| 83 | public function setInfluence($influence)  | 
                                |
| 84 |     { | 
                                |
| 85 | $this->influence = $influence;  | 
                                |
| 86 | return $this;  | 
                                |
| 87 | }  | 
                                |
| 88 | ||
| 89 | /**  | 
                                |
| 90 | * @return Bias[]  | 
                                |
| 91 | */  | 
                                |
| 92 | public function getBiases()  | 
                                |
| 93 |     { | 
                                |
| 94 | return $this->biases;  | 
                                |
| 95 | }  | 
                                |
| 96 | ||
| 97 | /**  | 
                                |
| 98 | * @param Bias[] $biases  | 
                                |
| 99 | *  | 
                                |
| 100 | * @return Biasing  | 
                                |
| 101 | */  | 
                                |
| 102 | public function setBiases($biases)  | 
                                |
| 103 |     { | 
                                |
| 104 | $this->biases = $biases;  | 
                                |
| 105 | return $this;  | 
                                |
| 106 | }  | 
                                |
| 107 | }  | 
                                |
| @@ 5-100 (lines=96) @@ | ||
| 2 | ||
| 3 | namespace GroupByInc\API\Request;  | 
                                |
| 4 | ||
| 5 | class Biasing  | 
                                |
| 6 | { | 
                                |
| 7 | /** @var string[] */  | 
                                |
| 8 | private $bringToTop = array();  | 
                                |
| 9 | ||
| 10 | /**  | 
                                |
| 11 | * @var bool  | 
                                |
| 12 | */  | 
                                |
| 13 | private $augmentBiases = false;  | 
                                |
| 14 | ||
| 15 | /**  | 
                                |
| 16 | * @var float|null  | 
                                |
| 17 | */  | 
                                |
| 18 | private $influence = null;  | 
                                |
| 19 | ||
| 20 | /**  | 
                                |
| 21 | * @var Bias[]  | 
                                |
| 22 | */  | 
                                |
| 23 | private $biases = array();  | 
                                |
| 24 | ||
| 25 | /**  | 
                                |
| 26 | * @return string[]  | 
                                |
| 27 | */  | 
                                |
| 28 | public function getBringToTop()  | 
                                |
| 29 |     { | 
                                |
| 30 | return $this->bringToTop;  | 
                                |
| 31 | }  | 
                                |
| 32 | ||
| 33 | /**  | 
                                |
| 34 | * @param string[] $bringToTop  | 
                                |
| 35 | *  | 
                                |
| 36 | * @return Biasing  | 
                                |
| 37 | */  | 
                                |
| 38 | public function setBringToTop($bringToTop)  | 
                                |
| 39 |     { | 
                                |
| 40 | $this->bringToTop = $bringToTop;  | 
                                |
| 41 | return $this;  | 
                                |
| 42 | }  | 
                                |
| 43 | ||
| 44 | /**  | 
                                |
| 45 | * @return boolean  | 
                                |
| 46 | */  | 
                                |
| 47 | public function isAugmentBiases()  | 
                                |
| 48 |     { | 
                                |
| 49 | return $this->augmentBiases;  | 
                                |
| 50 | }  | 
                                |
| 51 | ||
| 52 | /**  | 
                                |
| 53 | * @param boolean $augmentBiases  | 
                                |
| 54 | *  | 
                                |
| 55 | * @return Biasing  | 
                                |
| 56 | */  | 
                                |
| 57 | public function setAugmentBiases($augmentBiases)  | 
                                |
| 58 |     { | 
                                |
| 59 | $this->augmentBiases = $augmentBiases;  | 
                                |
| 60 | return $this;  | 
                                |
| 61 | }  | 
                                |
| 62 | ||
| 63 | /**  | 
                                |
| 64 | * @return float|null  | 
                                |
| 65 | */  | 
                                |
| 66 | public function getInfluence()  | 
                                |
| 67 |     { | 
                                |
| 68 | return $this->influence;  | 
                                |
| 69 | }  | 
                                |
| 70 | ||
| 71 | /**  | 
                                |
| 72 | * @param float|null $influence  | 
                                |
| 73 | *  | 
                                |
| 74 | * @return Biasing  | 
                                |
| 75 | */  | 
                                |
| 76 | public function setInfluence($influence)  | 
                                |
| 77 |     { | 
                                |
| 78 | $this->influence = $influence;  | 
                                |
| 79 | return $this;  | 
                                |
| 80 | }  | 
                                |
| 81 | ||
| 82 | /**  | 
                                |
| 83 | * @return Bias[]  | 
                                |
| 84 | */  | 
                                |
| 85 | public function getBiases()  | 
                                |
| 86 |     { | 
                                |
| 87 | return $this->biases;  | 
                                |
| 88 | }  | 
                                |
| 89 | ||
| 90 | /**  | 
                                |
| 91 | * @param Bias[] $biases  | 
                                |
| 92 | *  | 
                                |
| 93 | * @return Biasing  | 
                                |
| 94 | */  | 
                                |
| 95 | public function setBiases($biases)  | 
                                |
| 96 |     { | 
                                |
| 97 | $this->biases = $biases;  | 
                                |
| 98 | return $this;  | 
                                |
| 99 | }  | 
                                |
| 100 | }  | 
                                |