MatchOptions   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A zero_terms_query() 0 5 1
A operator() 0 5 1
A cutoff_frequency() 0 5 1
1
<?php
2
3
namespace olvlvl\ElasticsearchDSL\Query\Option;
4
5
trait MatchOptions
6
{
7
	use FuzzyOptions;
8
9
	public function operator(?string $operator)
10
	{
11
		$this->options[__FUNCTION__] = $operator;
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...
12
13
		return $this;
14
	}
15
16
	public function zero_terms_query(?string $zero_terms_query)
17
	{
18
		$this->options[__FUNCTION__] = $zero_terms_query;
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...
19
20
		return $this;
21
	}
22
23
	public function cutoff_frequency(?float $cutoff_frequency)
24
	{
25
		$this->options[__FUNCTION__] = $cutoff_frequency;
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...
26
27
		return $this;
28
	}
29
}
30