Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
50.00% |
1 / 2 |
|
50.00% |
1 / 2 |
CRAP | |
0.00% |
0 / 1 |
ErrorForwardingConfigurationLoader | |
50.00% |
1 / 2 |
|
50.00% |
1 / 2 |
2.50 | |
0.00% |
0 / 1 |
__construct | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
getDisabledTaskTypes | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 |
1 | <?php |
2 | |
3 | namespace GrowthExperiments\NewcomerTasks\ConfigurationLoader; |
4 | |
5 | use StatusValue; |
6 | |
7 | /** |
8 | * A ConfigurationLoader which returns a pre-configured error. |
9 | * |
10 | * Useful for telling the wiki admin that the default configuration is not usable, |
11 | * without breaking unrelated functionality (which an exception would). |
12 | */ |
13 | class ErrorForwardingConfigurationLoader extends StaticConfigurationLoader { |
14 | |
15 | /** |
16 | * @param StatusValue $statusValue The error to forward. |
17 | */ |
18 | public function __construct( StatusValue $statusValue ) { |
19 | parent::__construct( $statusValue, [] ); |
20 | } |
21 | |
22 | /** @inheritDoc */ |
23 | public function getDisabledTaskTypes(): array { |
24 | return []; |
25 | } |
26 | |
27 | } |