forked from JetBrains/phpstorm-stubs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWriteResult.php
80 lines (66 loc) · 2.6 KB
/
WriteResult.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<?php
namespace MongoDB\Driver;
/**
* The MongoDB\Driver\WriteResult class encapsulates information about an executed MongoDB\Driver\BulkWrite and may be returned by MongoDB\Driver\Manager::executeBulkWrite().
* @link https://php.net/manual/en/class.mongodb-driver-writeresult.php
*/
final class WriteResult
{
final private function __construct() {}
final public function __wakeup() {}
/**
* Returns the number of documents deleted
* @link https://php.net/manual/en/mongodb-driver-writeresult.getdeletedcount.php
*/
final public function getDeletedCount(): ?int {}
/**
* Returns the number of documents inserted (excluding upserts)
* @link https://php.net/manual/en/mongodb-driver-writeresult.getinsertedcount.php
*/
final public function getInsertedCount(): ?int {}
/**
* Returns the number of documents selected for update
* @link https://php.net/manual/en/mongodb-driver-writeresult.getmatchedcount.php
*/
final public function getMatchedCount(): ?int {}
/**
* Returns the number of existing documents updated
* @link https://php.net/manual/en/mongodb-driver-writeresult.getmodifiedcount.php
*/
final public function getModifiedCount(): ?int {}
/**
* Returns the server associated with this write result
* @link https://php.net/manual/en/mongodb-driver-writeresult.getserver.php
*/
final public function getServer(): Server {}
/**
* Returns the number of documents inserted by an upsert
* @link https://php.net/manual/en/mongodb-driver-writeresult.getupsertedcount.php
*/
final public function getUpsertedCount(): ?int {}
/**
* Returns an array of identifiers for upserted documents
* @link https://php.net/manual/en/mongodb-driver-writeresult.getupsertedids.php
*/
final public function getUpsertedIds(): array {}
/**
* Returns any write concern error that occurred
* @link https://php.net/manual/en/mongodb-driver-writeresult.getwriteconcernerror.php
*/
final public function getWriteConcernError(): ?WriteConcernError {}
/**
* Returns any write errors that occurred
* @link https://php.net/manual/en/mongodb-driver-writeresult.getwriteerrors.php
* @return WriteError[]
*/
final public function getWriteErrors(): array {}
/**
* @since 1.16.0
*/
final public function getErrorReplies(): array {}
/**
* Returns whether the write was acknowledged
* @link https://php.net/manual/en/mongodb-driver-writeresult.isacknowledged.php
*/
final public function isAcknowledged(): bool {}
}