-
Notifications
You must be signed in to change notification settings - Fork 209
/
Copy pathReadPreference.stub.php
71 lines (53 loc) · 1.56 KB
/
ReadPreference.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
<?php
/**
* @generate-class-entries static
* @generate-function-entries static
*/
namespace MongoDB\Driver;
final class ReadPreference implements \MongoDB\BSON\Serializable
{
/**
* @var string
* @cvalue PHONGO_READ_PRIMARY
*/
public const PRIMARY = UNKNOWN;
/**
* @var string
* @cvalue PHONGO_READ_PRIMARY_PREFERRED
*/
public const PRIMARY_PREFERRED = UNKNOWN;
/**
* @var string
* @cvalue PHONGO_READ_SECONDARY
*/
public const SECONDARY = UNKNOWN;
/**
* @var string
* @cvalue PHONGO_READ_SECONDARY_PREFERRED
*/
public const SECONDARY_PREFERRED = UNKNOWN;
/**
* @var string
* @cvalue PHONGO_READ_NEAREST
*/
public const NEAREST = UNKNOWN;
/**
* @var int
* @cvalue MONGOC_NO_MAX_STALENESS
*/
public const NO_MAX_STALENESS = UNKNOWN;
/**
* @var int
* @cvalue MONGOC_SMALLEST_MAX_STALENESS_SECONDS
*/
public const SMALLEST_MAX_STALENESS_SECONDS = UNKNOWN;
final public function __construct(string $mode, ?array $tagSets = null, ?array $options = null) {}
final public function getHedge(): ?object {}
final public function getMaxStalenessSeconds(): int {}
final public function getModeString(): string {}
final public function getTagSets(): array {}
final public static function __set_state(array $properties): ReadPreference {}
final public function bsonSerialize(): \stdClass {}
final public function __unserialize(array $data): void {}
final public function __serialize(): array {}
}