1 | <?php |
||
21 | trait SlaveOkay |
||
22 | { |
||
23 | /** |
||
24 | * @return bool |
||
25 | */ |
||
26 | abstract protected function getSlaveOkayFromReadPreference(); |
||
27 | |||
28 | /** |
||
29 | * @param bool $ok |
||
30 | * @return bool |
||
31 | */ |
||
32 | abstract protected function setReadPreferenceFromSlaveOkay($ok = true); |
||
33 | |||
34 | /** |
||
35 | * @link http://www.php.net/manual/en/mongocollection.getslaveokay.php |
||
36 | * @return bool |
||
37 | */ |
||
38 | 2 | public function getSlaveOkay() |
|
42 | |||
43 | /** |
||
44 | * @link http://www.php.net/manual/en/mongocollection.setslaveokay.php |
||
45 | * @param bool $ok |
||
46 | * @return bool |
||
47 | */ |
||
48 | 2 | public function setSlaveOkay($ok = true) |
|
52 | } |
||
53 |