@@ -15,7 +15,6 @@ class SimpleQueryStringQuery implements QueryInterface
1515 public function __construct (
1616 protected array $ fields ,
1717 protected string $ query ,
18-
1918 private ?string $ flags = null ,
2019 private ?bool $ fuzzyTranspositions = null ,
2120 private ?int $ fuzzyMaxExpansions = null ,
@@ -27,7 +26,6 @@ public function __construct(
2726 private ?string $ quoteFieldSuffix = null ,
2827 private ?bool $ analyzeWildCard = null ,
2928 private ?bool $ autoGenerateSynonymsPhraseQuery = null ,
30-
3129 protected array $ params = [],
3230 ) {
3331 $ this ->minimumShouldMatch = $ minimumShouldMatch ;
@@ -36,69 +34,70 @@ public function __construct(
3634 public function setFlags (string |null $ flags ): self
3735 {
3836 $ this ->flags = $ flags ;
37+
3938 return $ this ;
4039 }
4140
42-
4341 public function setFuzzyTranspositions (bool |null $ fuzzyTranspositions ): self
4442 {
4543 $ this ->fuzzyTranspositions = $ fuzzyTranspositions ;
44+
4645 return $ this ;
4746 }
4847
49-
5048 public function setFuzzyMaxExpansions (int |null $ fuzzyMaxExpansions ): self
5149 {
5250 $ this ->fuzzyMaxExpansions = $ fuzzyMaxExpansions ;
51+
5352 return $ this ;
5453 }
5554
56-
5755 public function setFuzzyPrefixLength (int |null $ fuzzyPrefixLength ): self
5856 {
5957 $ this ->fuzzyPrefixLength = $ fuzzyPrefixLength ;
58+
6059 return $ this ;
6160 }
6261
63-
6462 public function setDefaultOperator (string |null $ defaultOperator ): self
6563 {
6664 $ this ->defaultOperator = $ defaultOperator ;
65+
6766 return $ this ;
6867 }
6968
70-
7169 public function setAnalyzer (string |null $ analyzer ): self
7270 {
7371 $ this ->analyzer = $ analyzer ;
72+
7473 return $ this ;
7574 }
7675
77-
7876 public function setLenient (bool |null $ lenient ): self
7977 {
8078 $ this ->lenient = $ lenient ;
79+
8180 return $ this ;
8281 }
8382
84-
8583 public function setQuoteFieldSuffix (string |null $ quoteFieldSuffix ): self
8684 {
8785 $ this ->quoteFieldSuffix = $ quoteFieldSuffix ;
86+
8887 return $ this ;
8988 }
9089
91-
9290 public function setAnalyzeWildCard (bool |null $ analyzeWildCard ): self
9391 {
9492 $ this ->analyzeWildCard = $ analyzeWildCard ;
93+
9594 return $ this ;
9695 }
9796
98-
9997 public function setAutoGenerateSynonymsPhraseQuery (bool |null $ autoGenerateSynonymsPhraseQuery ): self
10098 {
10199 $ this ->autoGenerateSynonymsPhraseQuery = $ autoGenerateSynonymsPhraseQuery ;
100+
102101 return $ this ;
103102 }
104103
0 commit comments