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