@@ -45,103 +45,79 @@ abstract protected function getAddOperatorClosure(): Closure;
4545 */
4646 abstract protected function addOperator (SearchOperator $ operator ): SearchOperator ;
4747
48- /** return Autocomplete&CompoundSearchOperatorInterface */
49- public function autocomplete (string $ path = '' , string ...$ query ): Autocomplete
48+ public function autocomplete (string $ path = '' , string ...$ query ): Autocomplete &CompoundSearchOperatorInterface
5049 {
5150 return $ this ->addOperator (new CompoundedAutocomplete ($ this ->getCompoundStage (), $ this ->getAddOperatorClosure (), $ this ->getSearchStage (), $ path , ...$ query ));
5251 }
5352
54- /** @return EmbeddedDocument&CompoundSearchOperatorInterface */
55- public function embeddedDocument (string $ path = '' ): EmbeddedDocument
53+ public function embeddedDocument (string $ path = '' ): EmbeddedDocument &CompoundSearchOperatorInterface
5654 {
5755 return $ this ->addOperator (new CompoundedEmbeddedDocument ($ this ->getCompoundStage (), $ this ->getAddOperatorClosure (), $ this ->getSearchStage (), $ path ));
5856 }
5957
60- /**
61- * @param string|int|float|ObjectId|UTCDateTime|null $value
62- *
63- * @return Equals&CompoundSearchOperatorInterface
64- */
65- public function equals (string $ path = '' , $ value = null ): Equals
58+ /** @param string|int|float|ObjectId|UTCDateTime|null $value */
59+ public function equals (string $ path = '' , $ value = null ): Equals &CompoundSearchOperatorInterface
6660 {
6761 return $ this ->addOperator (new CompoundedEquals ($ this ->getCompoundStage (), $ this ->getAddOperatorClosure (), $ this ->getSearchStage (), $ path , $ value ));
6862 }
6963
70- /** @return Exists&CompoundSearchOperatorInterface */
71- public function exists (string $ path ): Exists
64+ public function exists (string $ path ): Exists &CompoundSearchOperatorInterface
7265 {
7366 return $ this ->addOperator (new CompoundedExists ($ this ->getCompoundStage (), $ this ->getAddOperatorClosure (), $ this ->getSearchStage (), $ path ));
7467 }
7568
76- /**
77- * @param LineString|Point|Polygon|MultiPolygon|array|null $geometry
78- *
79- * @return GeoShape&CompoundSearchOperatorInterface
80- */
81- public function geoShape ($ geometry = null , string $ relation = '' , string ...$ path ): GeoShape
69+ /** @param LineString|Point|Polygon|MultiPolygon|array<string, mixed>|null $geometry */
70+ public function geoShape ($ geometry = null , string $ relation = '' , string ...$ path ): GeoShape &CompoundSearchOperatorInterface
8271 {
8372 return $ this ->addOperator (new CompoundedGeoShape ($ this ->getCompoundStage (), $ this ->getAddOperatorClosure (), $ this ->getSearchStage (), $ geometry , $ relation , ...$ path ));
8473 }
8574
86- /** @return GeoWithin&CompoundSearchOperatorInterface */
87- public function geoWithin (string ...$ path ): GeoWithin
75+ public function geoWithin (string ...$ path ): GeoWithin &CompoundSearchOperatorInterface
8876 {
8977 return $ this ->addOperator (new CompoundedGeoWithin ($ this ->getCompoundStage (), $ this ->getAddOperatorClosure (), $ this ->getSearchStage (), ...$ path ));
9078 }
9179
92- /**
93- * @param array<string, mixed>|object $documents
94- *
95- * @return MoreLikeThis&CompoundSearchOperatorInterface
96- */
97- public function moreLikeThis (...$ documents ): MoreLikeThis
80+ /** @param array<string, mixed>|object $documents */
81+ public function moreLikeThis (...$ documents ): MoreLikeThis &CompoundSearchOperatorInterface
9882 {
9983 return $ this ->addOperator (new CompoundedMoreLikeThis ($ this ->getCompoundStage (), $ this ->getAddOperatorClosure (), $ this ->getSearchStage (), ...$ documents ));
10084 }
10185
10286 /**
103- * @param int|float|UTCDateTime|array|Point|null $origin
104- * @param int|float|null $pivot
105- *
106- * @return Near&CompoundSearchOperatorInterface
87+ * @param int|float|UTCDateTime|array<string, mixed>|Point|null $origin
88+ * @param int|float|null $pivot
10789 */
108- public function near ($ origin = null , $ pivot = null , string ...$ path ): Near
90+ public function near ($ origin = null , $ pivot = null , string ...$ path ): Near & CompoundSearchOperatorInterface
10991 {
11092 return $ this ->addOperator (new CompoundedNear ($ this ->getCompoundStage (), $ this ->getAddOperatorClosure (), $ this ->getSearchStage (), $ origin , $ pivot , ...$ path ));
11193 }
11294
113- /** @return Phrase&CompoundSearchOperatorInterface */
114- public function phrase (): Phrase
95+ public function phrase (): Phrase &CompoundSearchOperatorInterface
11596 {
11697 return $ this ->addOperator (new CompoundedPhrase ($ this ->getCompoundStage (), $ this ->getAddOperatorClosure (), $ this ->getSearchStage ()));
11798 }
11899
119- /** @return QueryString&CompoundSearchOperatorInterface */
120- public function queryString (string $ query = '' , string $ defaultPath = '' ): QueryString
100+ public function queryString (string $ query = '' , string $ defaultPath = '' ): QueryString &CompoundSearchOperatorInterface
121101 {
122102 return $ this ->addOperator (new CompoundedQueryString ($ this ->getCompoundStage (), $ this ->getAddOperatorClosure (), $ this ->getSearchStage (), $ query , $ defaultPath ));
123103 }
124104
125- /** @return Range&CompoundSearchOperatorInterface */
126- public function range (): Range
105+ public function range (): Range &CompoundSearchOperatorInterface
127106 {
128107 return $ this ->addOperator (new CompoundedRange ($ this ->getCompoundStage (), $ this ->getAddOperatorClosure (), $ this ->getSearchStage ()));
129108 }
130109
131- /** @return Regex&CompoundSearchOperatorInterface */
132- public function regex (): Regex
110+ public function regex (): Regex &CompoundSearchOperatorInterface
133111 {
134112 return $ this ->addOperator (new CompoundedRegex ($ this ->getCompoundStage (), $ this ->getAddOperatorClosure (), $ this ->getSearchStage ()));
135113 }
136114
137- /** @return Text&CompoundSearchOperatorInterface */
138- public function text (): Text
115+ public function text (): Text &CompoundSearchOperatorInterface
139116 {
140117 return $ this ->addOperator (new CompoundedText ($ this ->getCompoundStage (), $ this ->getAddOperatorClosure (), $ this ->getSearchStage ()));
141118 }
142119
143- /** @return Wildcard&CompoundSearchOperatorInterface */
144- public function wildcard (): Wildcard
120+ public function wildcard (): Wildcard &CompoundSearchOperatorInterface
145121 {
146122 return $ this ->addOperator (new CompoundedWildcard ($ this ->getCompoundStage (), $ this ->getAddOperatorClosure (), $ this ->getSearchStage ()));
147123 }
0 commit comments