Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
CRAP
100.00% covered (success)
100.00%
1 / 1
SectionImageRecommendationSubmissionLogFactory
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 newSectionImageRecommendationSubmissionLog
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2
3namespace GrowthExperiments\NewcomerTasks\AddSectionImage;
4
5use GrowthExperiments\NewcomerTasks\NewcomerTasksLog;
6use GrowthExperiments\NewcomerTasks\NewcomerTasksLogFactory;
7use MediaWiki\User\UserIdentity;
8
9class SectionImageRecommendationSubmissionLogFactory extends NewcomerTasksLogFactory {
10
11    /**
12     * @param UserIdentity $user
13     * @return NewcomerTasksLog
14     */
15    public function newSectionImageRecommendationSubmissionLog(
16        UserIdentity $user
17    ): NewcomerTasksLog {
18        return new NewcomerTasksLog( $this->getQueryBuilder( $user, 'addsectionimage' ) );
19    }
20}