1 | <?php |
||
21 | trait WriteConcern |
||
22 | { |
||
23 | /** |
||
24 | * @var \MongoDB\Driver\WriteConcern |
||
25 | */ |
||
26 | protected $writeConcern; |
||
27 | |||
28 | /** |
||
29 | * @param $wstring |
||
30 | * @param int $wtimeout |
||
31 | * @return bool |
||
32 | */ |
||
33 | abstract public function setWriteConcern($wstring, $wtimeout = 0); |
||
34 | |||
35 | /** |
||
36 | * @return array |
||
37 | */ |
||
38 | 89 | public function getWriteConcern() |
|
50 | |||
51 | /** |
||
52 | * @param string|int $wstring |
||
53 | * @param int $wtimeout |
||
54 | * @return \MongoDB\Driver\WriteConcern |
||
55 | */ |
||
56 | 89 | protected function createWriteConcernFromParameters($wstring, $wtimeout) |
|
66 | |||
67 | /** |
||
68 | * @param string|int $wstring |
||
69 | * @param int $wtimeout |
||
70 | * @return bool |
||
71 | */ |
||
72 | 89 | protected function setWriteConcernFromParameters($wstring, $wtimeout = 0) |
|
78 | |||
79 | /** |
||
80 | * @param array $writeConcernArray |
||
81 | * @return bool |
||
82 | */ |
||
83 | 88 | protected function setWriteConcernFromArray($writeConcernArray) |
|
90 | } |
||
91 |