Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 3
0.00% covered (danger)
0.00%
0 / 3
CRAP
0.00% covered (danger)
0.00%
0 / 1
ConnectionStatus
0.00% covered (danger)
0.00%
0 / 3
0.00% covered (danger)
0.00%
0 / 3
12
0.00% covered (danger)
0.00%
0 / 1
 __construct
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 setDB
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getDB
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2
3namespace MediaWiki\Installer;
4
5use MediaWiki\Status\Status;
6use Wikimedia\Rdbms\Database;
7
8/**
9 * @internal
10 */
11class ConnectionStatus extends Status {
12    public function __construct( Database $db = null ) {
13        $this->value = $db;
14    }
15
16    public function setDB( Database $db ) {
17        $this->value = $db;
18    }
19
20    public function getDB(): Database {
21        return $this->value;
22    }
23}