Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 5
0.00% covered (danger)
0.00%
0 / 2
CRAP
0.00% covered (danger)
0.00%
0 / 1
TranslateRegistrationStats
0.00% covered (danger)
0.00%
0 / 5
0.00% covered (danger)
0.00%
0 / 2
6
0.00% covered (danger)
0.00%
0 / 1
 createQueryBuilder
0.00% covered (danger)
0.00%
0 / 4
0.00% covered (danger)
0.00%
0 / 1
2
 getTimestampColumn
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2declare( strict_types = 1 );
3
4namespace MediaWiki\Extension\Translate\Statistics;
5
6use Wikimedia\Rdbms\IReadableDatabase;
7use Wikimedia\Rdbms\SelectQueryBuilder;
8
9/**
10 * Graph which provides statistics about amount of registered users in a given time.
11 * @ingroup Stats
12 * @license GPL-2.0-or-later
13 * @since 2010.07
14 */
15class TranslateRegistrationStats extends TranslationStatsBase {
16
17    public function createQueryBuilder( IReadableDatabase $database, string $caller ): SelectQueryBuilder {
18        return $database->newSelectQueryBuilder()
19            ->table( 'user' )
20            ->fields( 'user_registration' )
21            ->caller( $caller . '-registration' );
22    }
23
24    public function getTimestampColumn(): string {
25        return 'user_registration';
26    }
27}