BoostOption   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 7
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A boost() 0 5 1
1
<?php
2
3
namespace olvlvl\ElasticsearchDSL\Query\Option;
4
5
trait BoostOption
6
{
7
	public function boost(?float $boost)
8
	{
9
		$this->options[__FUNCTION__] = $boost;
0 ignored issues
show
Bug Best Practice introduced by
The property options does not exist. Although not strictly required by PHP, it is generally a best practice to declare properties explicitly.
Loading history...
10
11
		return $this;
12
	}
13
}
14