<?php
-use Wikimedia\Rdbms\IResultWrapper;
+namespace Wikimedia\Rdbms;
+
+use stdClass;
+use RuntimeException;
/**
* Result wrapper for grabbing data queried from an IDatabase object
*/
private function getDB() {
if ( !$this->db ) {
- throw new RuntimeException( get_class( $this ) . ' needs a DB handle for iteration.' );
+ throw new RuntimeException( static::class . ' needs a DB handle for iteration.' );
}
return $this->db;
return $this->current() !== false;
}
}
+
+class_alias( ResultWrapper::class, 'ResultWrapper' );