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
NullSubmissionHandler
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
 validate
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 handle
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2
3namespace GrowthExperiments\NewcomerTasks\TaskType;
4
5use GrowthExperiments\NewcomerTasks\AbstractSubmissionHandler;
6use GrowthExperiments\NewcomerTasks\SubmissionHandler;
7use MediaWiki\Page\ProperPageIdentity;
8use MediaWiki\User\UserIdentity;
9use StatusValue;
10
11/**
12 * A fake submission handler for usage alongside NullTaskTypeHandler.
13 */
14class 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}