Added release notes for 'ContentHandler::runLegacyHooks' removal
[mediawiki.git] / includes / libs / rdbms / database / position / DBMasterPos.php
blobeda0ff32569c17b01eedb756b3bed5e6276b1b12
1 <?php
2 /**
3 * An object representing a master or replica DB position in a replicated setup.
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
12 public function asOfTime();
14 /**
15 * @param DBMasterPos $pos
16 * @return bool Whether this position is at or higher than $pos
17 * @since 1.27
19 public function hasReached( DBMasterPos $pos );
21 /**
22 * @param DBMasterPos $pos
23 * @return bool Whether this position appears to be for the same channel as another
24 * @since 1.27
26 public function channelsMatch( DBMasterPos $pos );
28 /**
29 * @return string
30 * @since 1.27
32 public function __toString();