Issues (17)

lib/Query/Option/MatchOptions.php (3 issues)

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