MediaWiki master
MediaWiki\Rest\Validator\NullBodyValidator Class Reference

Do-nothing body validator. More...

Inherits MediaWiki\Rest\Validator\BodyValidator.

Collaboration diagram for MediaWiki\Rest\Validator\NullBodyValidator:

Public Member Functions

 validateBody (RequestInterface $request)
 Validate the body of a request.This may return a data structure representing the parsed body. When used in the context of Handler::validateParams(), the returned value will be available to the handler via Handler::getValidatedBody().
Parameters
RequestInterface$request
Returns
mixed|null
Exceptions
HttpExceptionon validation failure

 

Detailed Description

Do-nothing body validator.

Definition at line 10 of file NullBodyValidator.php.

Member Function Documentation

◆ validateBody()

MediaWiki\Rest\Validator\NullBodyValidator::validateBody ( RequestInterface $request)

Validate the body of a request.This may return a data structure representing the parsed body. When used in the context of Handler::validateParams(), the returned value will be available to the handler via Handler::getValidatedBody().

Parameters
RequestInterface$request
Returns
mixed|null
Exceptions
HttpExceptionon validation failure

Returns
null

Implements MediaWiki\Rest\Validator\BodyValidator.

Definition at line 16 of file NullBodyValidator.php.


The documentation for this class was generated from the following file: