3 namespace Wikimedia\Rdbms
;
6 * An object representing a master or replica DB position in a replicated setup.
8 * The implementation details of this opaque type are up to the database subclass.
10 interface DBMasterPos
{
12 * @return float UNIX timestamp
15 public function asOfTime();
18 * @param DBMasterPos $pos
19 * @return bool Whether this position is at or higher than $pos
22 public function hasReached( DBMasterPos
$pos );
25 * @param DBMasterPos $pos
26 * @return bool Whether this position appears to be for the same channel as another
29 public function channelsMatch( DBMasterPos
$pos );
35 public function __toString();