forked from mongodb/mongo-php-driver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathServer.stub.php
110 lines (79 loc) · 2.64 KB
/
Server.stub.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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
<?php
/**
* @generate-class-entries static
* @generate-function-entries static
*/
namespace MongoDB\Driver;
/** @not-serializable */
final class Server
{
/**
* @var int
* @cvalue PHONGO_SERVER_UNKNOWN
*/
public const TYPE_UNKNOWN = UNKNOWN;
/**
* @var int
* @cvalue PHONGO_SERVER_STANDALONE
*/
public const TYPE_STANDALONE = UNKNOWN;
/**
* @var int
* @cvalue PHONGO_SERVER_MONGOS
*/
public const TYPE_MONGOS = UNKNOWN;
/**
* @var int
* @cvalue PHONGO_SERVER_POSSIBLE_PRIMARY
*/
public const TYPE_POSSIBLE_PRIMARY = UNKNOWN;
/**
* @var int
* @cvalue PHONGO_SERVER_RS_PRIMARY
*/
public const TYPE_RS_PRIMARY = UNKNOWN;
/**
* @var int
* @cvalue PHONGO_SERVER_RS_SECONDARY
*/
public const TYPE_RS_SECONDARY = UNKNOWN;
/**
* @var int
* @cvalue PHONGO_SERVER_RS_ARBITER
*/
public const TYPE_RS_ARBITER = UNKNOWN;
/**
* @var int
* @cvalue PHONGO_SERVER_RS_OTHER
*/
public const TYPE_RS_OTHER = UNKNOWN;
/**
* @var int
* @cvalue PHONGO_SERVER_RS_GHOST
*/
public const TYPE_RS_GHOST = UNKNOWN;
/**
* @var int
* @cvalue PHONGO_SERVER_LOAD_BALANCER
*/
public const TYPE_LOAD_BALANCER = UNKNOWN;
final private function __construct() {}
final public function executeBulkWrite(string $namespace, BulkWrite $bulkWrite, array|null $options = null): WriteResult {}
final public function executeCommand(string $db, Command $command, array|null $options = null): CursorInterface {}
final public function executeQuery(string $namespace, Query $query, array|null $options = null): CursorInterface {}
final public function executeReadCommand(string $db, Command $command, ?array $options = null): CursorInterface {}
final public function executeReadWriteCommand(string $db, Command $command, ?array $options = null): CursorInterface {}
final public function executeWriteCommand(string $db, Command $command, ?array $options = null): CursorInterface {}
final public function getHost(): string {}
final public function getInfo(): array {}
final public function getLatency(): ?int {}
final public function getPort(): int {}
final public function getServerDescription(): ServerDescription {}
final public function getTags(): array {}
final public function getType(): int {}
final public function isArbiter(): bool {}
final public function isHidden(): bool {}
final public function isPassive(): bool {}
final public function isPrimary(): bool {}
final public function isSecondary(): bool {}
}