@@ -52,7 +52,7 @@ final class SearchSortingBuilder implements Builder
5252
5353 /**
5454
55- * @var null|SearchQueryExpression|SearchQueryExpressionBuilder
55+ * @var null|SearchQuery|SearchQueryBuilder
5656 */
5757 private $ filter ;
5858
@@ -116,11 +116,11 @@ public function getFieldType()
116116 * <p>Allows you to apply a <a href="/../api/search-query-language#sort-filter">sort filter</a>.</p>
117117 *
118118
119- * @return null|SearchQueryExpression
119+ * @return null|SearchQuery
120120 */
121121 public function getFilter ()
122122 {
123- return $ this ->filter instanceof SearchQueryExpressionBuilder ? $ this ->filter ->build () : $ this ->filter ;
123+ return $ this ->filter instanceof SearchQueryBuilder ? $ this ->filter ->build () : $ this ->filter ;
124124 }
125125
126126 /**
@@ -179,10 +179,10 @@ public function withFieldType(?string $fieldType)
179179 }
180180
181181 /**
182- * @param ?SearchQueryExpression $filter
182+ * @param ?SearchQuery $filter
183183 * @return $this
184184 */
185- public function withFilter (?SearchQueryExpression $ filter )
185+ public function withFilter (?SearchQuery $ filter )
186186 {
187187 $ this ->filter = $ filter ;
188188
@@ -193,7 +193,7 @@ public function withFilter(?SearchQueryExpression $filter)
193193 * @deprecated use withFilter() instead
194194 * @return $this
195195 */
196- public function withFilterBuilder (?SearchQueryExpressionBuilder $ filter )
196+ public function withFilterBuilder (?SearchQueryBuilder $ filter )
197197 {
198198 $ this ->filter = $ filter ;
199199
@@ -208,7 +208,7 @@ public function build(): SearchSorting
208208 $ this ->order ,
209209 $ this ->mode ,
210210 $ this ->fieldType ,
211- $ this ->filter instanceof SearchQueryExpressionBuilder ? $ this ->filter ->build () : $ this ->filter
211+ $ this ->filter instanceof SearchQueryBuilder ? $ this ->filter ->build () : $ this ->filter
212212 );
213213 }
214214
0 commit comments