MediaWiki
REL1_34
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:11
MediaWiki\Rest\Validator
Definition
BodyValidator.php:3
includes
Rest
Validator
NullBodyValidator.php
Generated on Mon Nov 25 2024 16:05:40 for MediaWiki by
1.10.0