3 namespace Wikimedia\Rdbms
;
8 * An object representing a master or replica DB position in a replicated setup.
10 * The implementation details of this opaque type are up to the database subclass.
12 interface DBMasterPos
extends Serializable
{
14 * @return float UNIX timestamp
17 public function asOfTime();
20 * @param DBMasterPos $pos
21 * @return bool Whether this position is at or higher than $pos
24 public function hasReached( DBMasterPos
$pos );
27 * @param DBMasterPos $pos
28 * @return bool Whether this position appears to be for the same channel as another
31 public function channelsMatch( DBMasterPos
$pos );
37 public function __toString();