Completed
Pull Request — develop (#25)
by
unknown
01:52
created

Biasing::getNumericBoosts()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 4
Ratio 100 %

Importance

Changes 0
Metric Value
dl 4
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace GroupByInc\API\Request;
4
5 View Code Duplication
class Biasing
0 ignored issues
show
Duplication introduced by
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
  /** @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
   * @var NumericBoost[]
27
   */
28
  private $numericBoosts = array();
29
30
  /**
31
   * @return string[]
32
   */
33
  public function getBringToTop()
34
  {
35
    return $this->bringToTop;
36
  }
37
38
  /**
39
   * @param string[] $bringToTop
40
   *
41
   * @return Biasing
42
   */
43
  public function setBringToTop($bringToTop)
44
  {
45
    $this->bringToTop = $bringToTop;
46
    return $this;
47
  }
48
49
  /**
50
   * @return boolean
51
   */
52
  public function isAugmentBiases()
53
  {
54
    return $this->augmentBiases;
55
  }
56
57
  /**
58
   * @param boolean $augmentBiases
59
   *
60
   * @return Biasing
61
   */
62
  public function setAugmentBiases($augmentBiases)
63
  {
64
    $this->augmentBiases = $augmentBiases;
65
    return $this;
66
  }
67
68
  /**
69
   * @return float|null
70
   */
71
  public function getInfluence()
72
  {
73
    return $this->influence;
74
  }
75
76
  /**
77
   * @param float|null $influence
78
   *
79
   * @return Biasing
80
   */
81
  public function setInfluence($influence)
82
  {
83
    $this->influence = $influence;
84
    return $this;
85
  }
86
87
  /**
88
   * @return NumericBoost[]
89
   */
90
  public function getNumericBoosts()
91
  {
92
    return $this->numericBoosts;
93
  }
94
95
  /**
96
   * @param NumericBoost[] $numericBoosts
97
   *
98
   * @return NumericBoost
99
   */
100
  public function setNumericBoosts($numericBoosts)
101
  {
102
    $this->numericBoosts = $numericBoosts;
103
    return $this;
104
  }
105
106
  /**
107
   * @return Bias[]
108
   */
109
  public function getBiases()
110
  {
111
    return $this->biases;
112
  }
113
114
  /**
115
   * @param Bias[] $biases
116
   *
117
   * @return Biasing
118
   */
119
  public function setBiases($biases)
120
  {
121
    $this->biases = $biases;
122
    return $this;
123
  }
124
}