@@ -21,9 +21,9 @@ class QueryBuilder
2121
2222 private ?int $ size = null ;
2323
24- private string |array |null $ pit = null ;
24+ private string |array |null $ pit = null ;
2525
26- private ?array $ searchAfter = null ;
26+ private ?array $ searchAfter = null ;
2727
2828 private ?QueryInterface $ query = null ;
2929
@@ -63,23 +63,23 @@ public function setSize(int $size): self
6363 return $ this ;
6464 }
6565
66- public function setPit (string |array |null $ pit ): self
67- {
68- if (is_array ($ pit ) && !isset ($ pit ['id ' ])) {
69- throw new \InvalidArgumentException ('Parameter "pit" is not valid. Value with key "id" is not set. ' );
70- }
66+ public function setPit (string |array |null $ pit ): self
67+ {
68+ if (is_array ($ pit ) && !isset ($ pit ['id ' ])) {
69+ throw new \InvalidArgumentException ('Parameter "pit" is not valid. Value with key "id" is not set. ' );
70+ }
7171
72- $ this ->pit = $ pit ;
72+ $ this ->pit = $ pit ;
7373
74- return $ this ;
75- }
74+ return $ this ;
75+ }
7676
77- public function setSearchAfter (?array $ searchAfter ): self
78- {
79- $ this ->searchAfter = $ searchAfter ;
77+ public function setSearchAfter (?array $ searchAfter ): self
78+ {
79+ $ this ->searchAfter = $ searchAfter ;
8080
81- return $ this ;
82- }
81+ return $ this ;
82+ }
8383
8484 public function setQuery (QueryInterface $ query ): self
8585 {
@@ -135,17 +135,17 @@ public function build(): array
135135 $ query ['size ' ] = $ this ->size ;
136136 }
137137
138- if (null !== $ this ->pit ) {
139- if (is_string ($ this ->pit )) {
140- $ query ['pit ' ] = ['id ' => $ this ->pit ];
141- } else {
142- $ query ['pit ' ] = $ this ->pit ;
143- }
144- }
138+ if (null !== $ this ->pit ) {
139+ if (is_string ($ this ->pit )) {
140+ $ query ['pit ' ] = ['id ' => $ this ->pit ];
141+ } else {
142+ $ query ['pit ' ] = $ this ->pit ;
143+ }
144+ }
145145
146- if (null !== $ this ->searchAfter ) {
147- $ query ['search_after ' ] = $ this ->searchAfter ;
148- }
146+ if (null !== $ this ->searchAfter ) {
147+ $ query ['search_after ' ] = $ this ->searchAfter ;
148+ }
149149
150150 if (null !== $ this ->source ) {
151151 $ query ['_source ' ] = $ this ->source ;
@@ -189,15 +189,15 @@ public function getSize(): ?int
189189 return $ this ->size ;
190190 }
191191
192- public function getPit (): string |array |null
193- {
194- return $ this ->pit ;
195- }
192+ public function getPit (): string |array |null
193+ {
194+ return $ this ->pit ;
195+ }
196196
197- public function getSearchAfter (): ?array
198- {
199- return $ this ->searchAfter ;
200- }
197+ public function getSearchAfter (): ?array
198+ {
199+ return $ this ->searchAfter ;
200+ }
201201
202202 public function getQuery (): ?QueryInterface
203203 {
0 commit comments