Wikibase
MediaWiki Wikibase extension
Wikibase\Repo\RestApi\DataAccess\SnakValidatorStatementValidator Class Reference
+ Inheritance diagram for Wikibase\Repo\RestApi\DataAccess\SnakValidatorStatementValidator:
+ Collaboration diagram for Wikibase\Repo\RestApi\DataAccess\SnakValidatorStatementValidator:

Public Member Functions

 __construct (StatementDeserializer $deserializer, SnakValidator $snakValidator)
 
 validate (array $statementSerialization, string $source)
 
 getValidatedStatement ()
 Returns the Statement object which is deserialized during the validation. More...
 

Private Attributes

 $deserializer
 
 $snakValidator
 
 $deserializedStatement = null
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\RestApi\DataAccess\SnakValidatorStatementValidator::__construct ( StatementDeserializer  $deserializer,
SnakValidator  $snakValidator 
)

Member Function Documentation

◆ getValidatedStatement()

Wikibase\Repo\RestApi\DataAccess\SnakValidatorStatementValidator::getValidatedStatement ( )

Returns the Statement object which is deserialized during the validation.

This method only returns the validated Statement if the validation didn't error.

Implements Wikibase\Repo\RestApi\Validation\StatementValidator.

◆ validate()

Wikibase\Repo\RestApi\DataAccess\SnakValidatorStatementValidator::validate ( array  $statementSerialization,
string  $source 
)

Member Data Documentation

◆ $deserializedStatement

Wikibase\Repo\RestApi\DataAccess\SnakValidatorStatementValidator::$deserializedStatement = null
private

◆ $deserializer

Wikibase\Repo\RestApi\DataAccess\SnakValidatorStatementValidator::$deserializer
private

◆ $snakValidator

Wikibase\Repo\RestApi\DataAccess\SnakValidatorStatementValidator::$snakValidator
private

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