| 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
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
|
|||
| 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
|
|||
| 24 | |||
| 25 | return $this; |
||
| 26 | } |
||
| 27 | } |
||
| 28 |