24 lines
355 B
PHP
24 lines
355 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace MediaWiki\Installer;
|
||
|
|
|
||
|
|
use Status;
|
||
|
|
use Wikimedia\Rdbms\Database;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* @internal
|
||
|
|
*/
|
||
|
|
class ConnectionStatus extends Status {
|
||
|
|
public function __construct( Database $db = null ) {
|
||
|
|
$this->value = $db;
|
||
|
|
}
|
||
|
|
|
||
|
|
public function setDB( Database $db ) {
|
||
|
|
$this->value = $db;
|
||
|
|
}
|
||
|
|
|
||
|
|
public function getDB(): Database {
|
||
|
|
return $this->value;
|
||
|
|
}
|
||
|
|
}
|