MediaWiki
REL1_39
NullBodyValidator.php
Go to the documentation of this file.
1
<?php
2
3
namespace
MediaWiki\Rest\Validator
;
4
5
use
MediaWiki\Rest\RequestInterface
;
6
10
class
NullBodyValidator
implements
BodyValidator
{
11
12
public
function
validateBody
(
RequestInterface
$request ) {
13
return
null
;
14
}
15
16
}
MediaWiki\Rest\Validator\NullBodyValidator
Do-nothing body validator.
Definition
NullBodyValidator.php:10
MediaWiki\Rest\Validator\NullBodyValidator\validateBody
validateBody(RequestInterface $request)
Validate the body of a request.
Definition
NullBodyValidator.php:12
MediaWiki\Rest\RequestInterface
A request interface similar to PSR-7's ServerRequestInterface.
Definition
RequestInterface.php:39
MediaWiki\Rest\Validator\BodyValidator
Interface for validating a request body.
Definition
BodyValidator.php:14
MediaWiki\Rest\Validator
Definition
BodyValidator.php:3
includes
Rest
Validator
NullBodyValidator.php
Generated on Sun Nov 24 2024 15:43:24 for MediaWiki by
1.10.0