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