Skip to content

Commit 7dde460

Browse files
committed
correcting return types for reset
1 parent 5da0657 commit 7dde460

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

phalcon/DataMapper/Query/Delete.zep

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

8989
let this->store["FROM"] = "",
9090
this->store["RETURNING"] = [];
91+
92+
return this;
9193
}
9294
}

phalcon/DataMapper/Query/Insert.zep

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

141141
let this->store["FROM"] = "",
142142
this->store["RETURNING"] = [];
143+
144+
return this;
143145
}
144146

145147
/**

phalcon/DataMapper/Query/Update.zep

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

140140
let this->store["FROM"] = "",
141141
this->store["RETURNING"] = [];
142+
143+
return this;
142144
}
143145

144146
/**

0 commit comments

Comments
 (0)