Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 4
0.00% covered (danger)
0.00%
0 / 3
CRAP
0.00% covered (danger)
0.00%
0 / 1
CentralAuthTempUserSerialProvider
0.00% covered (danger)
0.00%
0 / 4
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 / 2
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
 getTableName
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2
3namespace MediaWiki\Extension\CentralAuth;
4
5use MediaWiki\User\TempUser\DBSerialProvider;
6
7class CentralAuthTempUserSerialProvider extends DBSerialProvider {
8
9    private CentralAuthDatabaseManager $dbManager;
10
11    /**
12     * @param array $config
13     * @param CentralAuthDatabaseManager $dbManager
14     */
15    public function __construct( $config, CentralAuthDatabaseManager $dbManager ) {
16        parent::__construct( $config );
17        $this->dbManager = $dbManager;
18    }
19
20    /** @inheritDoc */
21    protected function getDB() {
22        return $this->dbManager->getCentralPrimaryDB();
23    }
24
25    /** @inheritDoc */
26    protected function getTableName() {
27        return 'global_user_autocreate_serial';
28    }
29}