* @ingroup Database
*/
-/**
- * Utility class.
- * @ingroup Database
- */
-class DBObject {
- public $mData;
-
- function __construct( $data ) {
- $this->mData = $data;
- }
-
- /**
- * @return bool
- */
- function isLOB() {
- return false;
- }
-
- function data() {
- return $this->mData;
- }
-}
-
/**
* Utility class
* @ingroup Database
/** @var array|stdClass|bool */
protected $currentRow = null;
+ /**
+ * @param array $array
+ */
function __construct( $array ) {
$this->result = $array;
}
interface DBMasterPos {
/**
* @return float UNIX timestamp
+ * @since 1.25
*/
public function asOfTime();
+
+ /**
+ * @param DBMasterPos $pos
+ * @return bool Whether this position is at or higher than $pos
+ * @since 1.27
+ */
+ public function hasReached( DBMasterPos $pos );
+
+ /**
+ * @return string
+ * @since 1.27
+ */
+ public function __toString();
}