Merge "Don't fallback from uk to ru"
[lhc/web/wiklou.git] / includes / libs / rdbms / database / position / DBMasterPos.php
1 <?php
2 /**
3 * An object representing a master or replica DB position in a replicated setup.
4 *
5 * The implementation details of this opaque type are up to the database subclass.
6 */
7 interface DBMasterPos {
8 /**
9 * @return float UNIX timestamp
10 * @since 1.25
11 */
12 public function asOfTime();
13
14 /**
15 * @param DBMasterPos $pos
16 * @return bool Whether this position is at or higher than $pos
17 * @since 1.27
18 */
19 public function hasReached( DBMasterPos $pos );
20
21 /**
22 * @param DBMasterPos $pos
23 * @return bool Whether this position appears to be for the same channel as another
24 * @since 1.27
25 */
26 public function channelsMatch( DBMasterPos $pos );
27
28 /**
29 * @return string
30 * @since 1.27
31 */
32 public function __toString();
33 }