Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 3 |
|
0.00% |
0 / 3 |
CRAP | |
0.00% |
0 / 1 |
NoValidationValidator | |
0.00% |
0 / 3 |
|
0.00% |
0 / 3 |
12 | |
0.00% |
0 / 1 |
validate | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
validateVariable | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
getDefaultContent | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 |
1 | <?php |
2 | |
3 | namespace GrowthExperiments\Config\Validation; |
4 | |
5 | use StatusValue; |
6 | |
7 | /** |
8 | * A validator that doesn't validate anything (always passes) |
9 | */ |
10 | class NoValidationValidator implements IConfigValidator { |
11 | |
12 | /** |
13 | * @inheritDoc |
14 | */ |
15 | public function validate( array $config ): StatusValue { |
16 | return StatusValue::newGood(); |
17 | } |
18 | |
19 | /** |
20 | * @inheritDoc |
21 | */ |
22 | public function validateVariable( string $variable, $value ): void { |
23 | } |
24 | |
25 | /** |
26 | * @inheritDoc |
27 | */ |
28 | public function getDefaultContent(): array { |
29 | return []; |
30 | } |
31 | } |