Issues (17)

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

1
<?php
2
3
namespace olvlvl\ElasticsearchDSL\Query\Option;
4
5
trait FuzzyOptions
6
{
7
	public function fuzziness($fuzziness = null)
8
	{
9
		$this->options[__FUNCTION__] = $fuzziness;
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
	public function prefix_length(?int $prefix_length)
15
	{
16
		$this->options[__FUNCTION__] = $prefix_length;
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...
17
18
		return $this;
19
	}
20
21
	public function max_expansions(?int $max_expansions)
22
	{
23
		$this->options[__FUNCTION__] = $max_expansions;
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...
24
25
		return $this;
26
	}
27
}
28