Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 2
0.00% covered (danger)
0.00%
0 / 2
CRAP
0.00% covered (danger)
0.00%
0 / 1
TemplateBasedTaskSubmissionHandler
0.00% covered (danger)
0.00%
0 / 2
0.00% covered (danger)
0.00%
0 / 2
6
0.00% covered (danger)
0.00%
0 / 1
 handle
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 validate
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2
3namespace GrowthExperiments\NewcomerTasks;
4
5use GrowthExperiments\NewcomerTasks\TaskType\TaskType;
6use MediaWiki\Page\ProperPageIdentity;
7use MediaWiki\User\UserIdentity;
8use StatusValue;
9
10class 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}