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
ImageRecommendationSubmissionLogFactory
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
 newImageRecommendationSubmissionLog
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2
3namespace GrowthExperiments\NewcomerTasks\AddImage;
4
5use GrowthExperiments\NewcomerTasks\NewcomerTasksLog;
6use GrowthExperiments\NewcomerTasks\NewcomerTasksLogFactory;
7use MediaWiki\User\UserIdentity;
8
9class 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}