@@ -186,7 +186,7 @@ discard block |
||
186 | 186 | |
187 | 187 | /** |
188 | 188 | * @link http://www.php.net/manual/en/mongocollection.getslaveokay.php |
189 | - * @return bool |
|
189 | + * @return boolean|null |
|
190 | 190 | */ |
191 | 191 | public function getSlaveOkay() |
192 | 192 | { |
@@ -196,7 +196,7 @@ discard block |
||
196 | 196 | /** |
197 | 197 | * @link http://www.php.net/manual/en/mongocollection.setslaveokay.php |
198 | 198 | * @param bool $ok |
199 | - * @return bool |
|
199 | + * @return boolean|null |
|
200 | 200 | */ |
201 | 201 | public function setSlaveOkay($ok = true) |
202 | 202 | { |
@@ -254,7 +254,7 @@ discard block |
||
254 | 254 | * @throws MongoException if the inserted document is empty or if it contains zero-length keys. Attempting to insert an object with protected and private properties will cause a zero-length key error. |
255 | 255 | * @throws MongoCursorException if the "w" option is set and the write fails. |
256 | 256 | * @throws MongoCursorTimeoutException if the "w" option is set to a value greater than one and the operation takes longer than MongoCursor::$timeout milliseconds to complete. This does not kill the operation on the server, it is a client-side timeout. The operation in MongoCollection::$wtimeout is milliseconds. |
257 | - * @return bool|array Returns an array containing the status of the insertion if the "w" option is set. |
|
257 | + * @return MongoDB\InsertOneResult Returns an array containing the status of the insertion if the "w" option is set. |
|
258 | 258 | */ |
259 | 259 | public function insert($a, array $options = array()) |
260 | 260 | { |
@@ -267,7 +267,7 @@ discard block |
||
267 | 267 | * @param array $a An array of arrays. |
268 | 268 | * @param array $options Options for the inserts. |
269 | 269 | * @throws MongoCursorException |
270 | - * @return mixed f "safe" is set, returns an associative array with the status of the inserts ("ok") and any error that may have occured ("err"). Otherwise, returns TRUE if the batch insert was successfully sent, FALSE otherwise. |
|
270 | + * @return MongoDB\InsertManyResult f "safe" is set, returns an associative array with the status of the inserts ("ok") and any error that may have occured ("err"). Otherwise, returns TRUE if the batch insert was successfully sent, FALSE otherwise. |
|
271 | 271 | */ |
272 | 272 | public function batchInsert(array $a, array $options = array()) |
273 | 273 | { |
@@ -432,7 +432,7 @@ discard block |
||
432 | 432 | * @link http://www.php.net/manual/en/mongocollection.ensureindex.php |
433 | 433 | * @param array $keys Field or fields to use as index. |
434 | 434 | * @param array $options [optional] This parameter is an associative array of the form array("optionname" => <boolean>, ...). |
435 | - * @return boolean always true |
|
435 | + * @return boolean|null always true |
|
436 | 436 | */ |
437 | 437 | public function ensureIndex(array $keys, array $options = array()) {} |
438 | 438 |
@@ -292,7 +292,6 @@ discard block |
||
292 | 292 | * (PECL mongo >= 0.9.0)<br/> |
293 | 293 | * Get a list of collections in this database |
294 | 294 | * @link http://www.php.net/manual/en/mongodb.listcollections.php |
295 | - * @param bool $includeSystemCollections [optional] <p>Include system collections.</p> |
|
296 | 295 | * @return array Returns a list of MongoCollections. |
297 | 296 | */ |
298 | 297 | public function listCollections(array $options = []) |
@@ -433,7 +432,7 @@ discard block |
||
433 | 432 | * (PECL mongo >= 0.9.5)<br/> |
434 | 433 | * Creates a database error |
435 | 434 | * @link http://www.php.net/manual/en/mongodb.forceerror.php |
436 | - * @return boolean Returns the database response. |
|
435 | + * @return boolean|null Returns the database response. |
|
437 | 436 | */ |
438 | 437 | public function forceError() |
439 | 438 | { |