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