Completed
Pull Request — develop (#25)
by
unknown
03:54 queued 01:46
created

Biasing::setNumericBoosts()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 5
Ratio 100 %

Importance

Changes 0
Metric Value
dl 5
loc 5
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
3
namespace GroupByInc\API\Request;
4
5
use JMS\Serializer\Annotation as JMS;
6
7 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...
8
{
9
  /**
10
   * @var string[]
11
   * @JMS\Type("array<string>")
12
   */
13
  private $bringToTop = array();
14
15
  /**
16
   * @var bool
17
   * @JMS\Type("boolean")
18
   */
19
  private $augmentBiases = false;
20
21
  /**
22
   * @var float|null
23
   * @JMS\Type("float")
24
   */
25
  private $influence = null;
26
27
  /**
28
   * @var Bias[]
29
   * @JMS\Type("array<GroupByInc\API\Request\Bias>")
30
   */
31
  private $biases = array();
32
33
  /**
34
   * @var NumericBoost[]
35
   * @JMS\Type("array<GroupByInc\API\Request\NumericBoost>")
36
   */
37
  private $numericBoosts = array();
38
39
  /**
40
   * @return string[]
41
   */
42
  public function getBringToTop()
43
  {
44
    return $this->bringToTop;
45
  }
46
47
  /**
48
   * @param string[] $bringToTop
49
   *
50
   * @return Biasing
51
   */
52
  public function setBringToTop($bringToTop)
53
  {
54
    $this->bringToTop = $bringToTop;
55
    return $this;
56
  }
57
58
  /**
59
   * @return boolean
60
   */
61
  public function isAugmentBiases()
62
  {
63
    return $this->augmentBiases;
64
  }
65
66
  /**
67
   * @param boolean $augmentBiases
68
   *
69
   * @return Biasing
70
   */
71
  public function setAugmentBiases($augmentBiases)
72
  {
73
    $this->augmentBiases = $augmentBiases;
74
    return $this;
75
  }
76
77
  /**
78
   * @return float|null
79
   */
80
  public function getInfluence()
81
  {
82
    return $this->influence;
83
  }
84
85
  /**
86
   * @param float|null $influence
87
   *
88
   * @return Biasing
89
   */
90
  public function setInfluence($influence)
91
  {
92
    $this->influence = $influence;
93
    return $this;
94
  }
95
96
  /**
97
   * @return NumericBoost[]
98
   */
99
  public function getNumericBoosts()
100
  {
101
    return $this->numericBoosts;
102
  }
103
104
  /**
105
   * @param NumericBoost[] $numericBoosts
106
   *
107
   * @return Biasing
108
   */
109
  public function setNumericBoosts($numericBoosts)
110
  {
111
    $this->numericBoosts = $numericBoosts;
112
    return $this;
113
  }
114
115
  /**
116
   * @return Bias[]
117
   */
118
  public function getBiases()
119
  {
120
    return $this->biases;
121
  }
122
123
  /**
124
   * @param Bias[] $biases
125
   *
126
   * @return Biasing
127
   */
128
  public function setBiases($biases)
129
  {
130
    $this->biases = $biases;
131
    return $this;
132
  }
133
}