Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
NullBodyValidator | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
validateBody | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 |
1 | <?php |
2 | |
3 | namespace MediaWiki\Rest\Validator; |
4 | |
5 | use MediaWiki\Rest\RequestInterface; |
6 | |
7 | /** |
8 | * Do-nothing body validator |
9 | * |
10 | * @deprecated since 1.43, because Handler::getBodyValidator() is deprecated. |
11 | */ |
12 | class NullBodyValidator implements BodyValidator { |
13 | |
14 | /** |
15 | * @inheritDoc |
16 | * @return null |
17 | */ |
18 | public function validateBody( RequestInterface $request ) { |
19 | return null; |
20 | } |
21 | |
22 | } |