Skip to content

Commit cbfb63a

Browse files
committed
reverting return types for datamapper
1 parent 7dde460 commit cbfb63a

File tree

4 files changed

+12
-36
lines changed

4 files changed

+12
-36
lines changed

phalcon/DataMapper/Query/AbstractQuery.zep

Lines changed: 9 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ abstract class AbstractQuery
167167
/**
168168
* Resets the internal array
169169
*/
170-
public function reset() -> <AbstractQuery>
170+
public function reset() -> void
171171
{
172172
let this->store["COLUMNS"] = [],
173173
this->store["FLAGS"] = [],
@@ -178,89 +178,71 @@ abstract class AbstractQuery
178178
this->store["ORDER"] = [],
179179
this->store["OFFSET"] = 0,
180180
this->store["WHERE"] = [];
181-
182-
return this;
183181
}
184182

185183
/**
186184
* Resets the columns
187185
*/
188-
public function resetColumns() -> <AbstractQuery>
186+
public function resetColumns() -> void
189187
{
190188
let this->store["COLUMNS"] = [];
191-
192-
return this;
193189
}
194190

195191
/**
196192
* Resets the from
197193
*/
198-
public function resetFrom() -> <AbstractQuery>
194+
public function resetFrom() -> void
199195
{
200196
let this->store["FROM"] = [];
201-
202-
return this;
203197
}
204198

205199
/**
206200
* Resets the where
207201
*/
208-
public function resetWhere() -> <AbstractQuery>
202+
public function resetWhere() -> void
209203
{
210204
let this->store["WHERE"] = [];
211-
212-
return this;
213205
}
214206

215207
/**
216208
* Resets the group by
217209
*/
218-
public function resetGroupBy() -> <AbstractQuery>
210+
public function resetGroupBy() -> void
219211
{
220212
let this->store["GROUP"] = [];
221-
222-
return this;
223213
}
224214

225215
/**
226216
* Resets the having
227217
*/
228-
public function resetHaving() -> <AbstractQuery>
218+
public function resetHaving() -> void
229219
{
230220
let this->store["HAVING"] = [];
231-
232-
return this;
233221
}
234222

235223
/**
236224
* Resets the order by
237225
*/
238-
public function resetOrderBy() -> <AbstractQuery>
226+
public function resetOrderBy() -> void
239227
{
240228
let this->store["ORDER"] = [];
241-
242-
return this;
243229
}
244230

245231
/**
246232
* Resets the limit and offset
247233
*/
248-
public function resetLimit() -> <AbstractQuery>
234+
public function resetLimit() -> void
249235
{
250236
let this->store["LIMIT"] = 0,
251237
this->store["OFFSET"] = 0;
252-
253-
return this;
254238
}
255239

256240
/**
257241
* Resets the flags
258242
*/
259-
public function resetFlags() -> <AbstractQuery>
243+
public function resetFlags() -> void
260244
{
261245
let this->store["FLAGS"] = [];
262-
263-
return this;
264246
}
265247

266248
/**

phalcon/DataMapper/Query/Delete.zep

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,13 +82,11 @@ class Delete extends AbstractConditions
8282
/**
8383
* Resets the internal store
8484
*/
85-
public function reset() -> <Delete>
85+
public function reset() -> void
8686
{
8787
parent::reset();
8888

8989
let this->store["FROM"] = "",
9090
this->store["RETURNING"] = [];
91-
92-
return this;
9391
}
9492
}

phalcon/DataMapper/Query/Insert.zep

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,14 +134,12 @@ class Insert extends AbstractQuery
134134
/**
135135
* Resets the internal store
136136
*/
137-
public function reset() -> <Insert>
137+
public function reset() -> void
138138
{
139139
parent::reset();
140140

141141
let this->store["FROM"] = "",
142142
this->store["RETURNING"] = [];
143-
144-
return this;
145143
}
146144

147145
/**

phalcon/DataMapper/Query/Update.zep

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,14 +133,12 @@ class Update extends AbstractConditions
133133
/**
134134
* Resets the internal store
135135
*/
136-
public function reset() -> <Update>
136+
public function reset() -> void
137137
{
138138
parent::reset();
139139

140140
let this->store["FROM"] = "",
141141
this->store["RETURNING"] = [];
142-
143-
return this;
144142
}
145143

146144
/**

0 commit comments

Comments
 (0)