Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 2 |
|
0.00% |
0 / 2 |
CRAP | |
0.00% |
0 / 1 |
TemplateBasedTaskSubmissionHandler | |
0.00% |
0 / 2 |
|
0.00% |
0 / 2 |
6 | |
0.00% |
0 / 1 |
handle | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
validate | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 |
1 | <?php |
2 | |
3 | namespace GrowthExperiments\NewcomerTasks; |
4 | |
5 | use GrowthExperiments\NewcomerTasks\TaskType\TaskType; |
6 | use MediaWiki\Page\ProperPageIdentity; |
7 | use MediaWiki\User\UserIdentity; |
8 | use StatusValue; |
9 | |
10 | class TemplateBasedTaskSubmissionHandler extends AbstractSubmissionHandler implements SubmissionHandler { |
11 | |
12 | /** @inheritDoc */ |
13 | public function handle( |
14 | TaskType $taskType, ProperPageIdentity $page, UserIdentity $user, ?int $baseRevId, ?int $editRevId, array $data |
15 | ): StatusValue { |
16 | return StatusValue::newGood(); |
17 | } |
18 | |
19 | /** @inheritDoc */ |
20 | public function validate( |
21 | TaskType $taskType, ProperPageIdentity $page, UserIdentity $user, ?int $baseRevId, array $data |
22 | ): StatusValue { |
23 | return StatusValue::newGood(); |
24 | } |
25 | } |