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