MatchOptions::zero_terms_query()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 5
rs 10
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