Total Complexity | 3 |
Total Lines | 34 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
9 | trait HasBoost |
||
10 | { |
||
11 | |||
12 | /** |
||
13 | * @var ?float Sets the boost value of the query, defaults to 1.0. |
||
14 | */ |
||
15 | protected $boost; |
||
16 | |||
17 | /** |
||
18 | * @return float|null |
||
19 | */ |
||
20 | public function getBoost() |
||
21 | { |
||
22 | return $this->boost; |
||
23 | } |
||
24 | |||
25 | /** |
||
26 | * @param float $boost |
||
27 | * |
||
28 | * @return $this |
||
29 | */ |
||
30 | public function setBoost(float $boost) |
||
31 | { |
||
32 | $this->boost = $boost; |
||
33 | |||
34 | return $this; |
||
35 | } |
||
36 | |||
37 | /** |
||
38 | * @return bool |
||
39 | */ |
||
40 | public function hasBoost() |
||
43 | } |
||
44 | } |
||
45 |