Merge "docs: Fix typo"
[mediawiki.git] / includes / installer / ConnectionStatus.php
blobd7c11f68351730f9ff0a548f49ebb0db6b779987
1 <?php
3 namespace MediaWiki\Installer;
5 use MediaWiki\Status\Status;
6 use Wikimedia\Rdbms\IMaintainableDatabase;
8 /**
9 * @internal
11 class ConnectionStatus extends Status {
12 public function __construct( ?IMaintainableDatabase $db = null ) {
13 $this->value = $db;
16 public function setDB( IMaintainableDatabase $db ) {
17 $this->value = $db;
20 public function getDB(): IMaintainableDatabase {
21 return $this->value;