@@ -114,7 +114,7 @@ protected static function sanitizeAction($action)
114
114
* @param string $action One of the ACTION_* constants. Describes the
115
115
* operation to perform.
116
116
*
117
- * @return self|Query The query object.
117
+ * @return static The query object.
118
118
*/
119
119
public static function where (
120
120
$ name ,
@@ -128,7 +128,7 @@ public static function where(
128
128
/**
129
129
* Negates the query.
130
130
*
131
- * @return self|Query The query object.
131
+ * @return $this The query object.
132
132
*/
133
133
public function not ()
134
134
{
@@ -139,13 +139,18 @@ public function not()
139
139
/**
140
140
* Adds a condition as an alternative to the query.
141
141
*
142
- * @param string $name The name of the property to test.
143
- * @param string $value The value to test against. Not required for
144
- * existence tests.
145
- * @param string $action One of the ACTION_* constants. Describes the
146
- * operation to perform.
142
+ * @param string $name The name of the property to test.
143
+ * @param string|resource|null $value Value of the property as a string or
144
+ * seekable stream. Not required for existence tests.
145
+ * If a seekable stream is provided, it is sent from its current
146
+ * posistion to its end, and the pointer is seeked back to its current
147
+ * position after sending.
148
+ * Non seekable streams, as well as all other types, are casted to a
149
+ * string.
150
+ * @param string $action One of the ACTION_* constants.
151
+ * Describes the operation to perform.
147
152
*
148
- * @return self|Query The query object.
153
+ * @return $this The query object.
149
154
*/
150
155
public function orWhere ($ name , $ value = null , $ action = self ::ACTION_EXIST )
151
156
{
@@ -156,13 +161,18 @@ public function orWhere($name, $value = null, $action = self::ACTION_EXIST)
156
161
/**
157
162
* Adds a condition in addition to the query.
158
163
*
159
- * @param string $name The name of the property to test.
160
- * @param string $value The value to test against. Not required for
161
- * existence tests.
162
- * @param string $action One of the ACTION_* constants. Describes the
163
- * operation to perform.
164
+ * @param string $name The name of the property to test.
165
+ * @param string|resource|null $value Value of the property as a string or
166
+ * seekable stream. Not required for existence tests.
167
+ * If a seekable stream is provided, it is sent from its current
168
+ * posistion to its end, and the pointer is seeked back to its current
169
+ * position after sending.
170
+ * Non seekable streams, as well as all other types, are casted to a
171
+ * string.
172
+ * @param string $action One of the ACTION_* constants.
173
+ * Describes the operation to perform.
164
174
*
165
- * @return self|Query The query object.
175
+ * @return $this The query object.
166
176
*/
167
177
public function andWhere ($ name , $ value = null , $ action = self ::ACTION_EXIST )
168
178
{
@@ -227,13 +237,18 @@ private function _send(Communicator $com)
227
237
/**
228
238
* Adds a condition.
229
239
*
230
- * @param string $name The name of the property to test.
231
- * @param string $value The value to test against. Not required for
232
- * existence tests.
233
- * @param string $action One of the ACTION_* constants. Describes the
234
- * operation to perform.
240
+ * @param string $name The name of the property to test.
241
+ * @param string|resource|null $value Value of the property as a string or
242
+ * seekable stream. Not required for existence tests.
243
+ * If a seekable stream is provided, it is sent from its current
244
+ * posistion to its end, and the pointer is seeked back to its current
245
+ * position after sending.
246
+ * Non seekable streams, as well as all other types, are casted to a
247
+ * string.
248
+ * @param string $action One of the ACTION_* constants.
249
+ * Describes the operation to perform.
235
250
*
236
- * @return self|Query The query object.
251
+ * @return $this The query object.
237
252
*/
238
253
protected function addWhere ($ name , $ value , $ action )
239
254
{
0 commit comments