Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Repo\RestApi\Application\Validation\StatementValidator Class Reference
+ Collaboration diagram for Wikibase\Repo\RestApi\Application\Validation\StatementValidator:

Public Member Functions

 __construct (StatementDeserializer $deserializer)
 
 validate (array $statementSerialization)
 
 getValidatedStatement ()
 

Public Attributes

const CODE_INVALID_FIELD = 'statement-validator-code-invalid-statement-field'
 
const CODE_MISSING_FIELD = 'statement-validator-code-missing-statement-field'
 
const CONTEXT_FIELD = 'statement-validator-context-field'
 
const CONTEXT_VALUE = 'statement-validator-context-value'
 

Private Attributes

StatementDeserializer $deserializer
 
Statement $deserializedStatement = null
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\RestApi\Application\Validation\StatementValidator::__construct ( StatementDeserializer $deserializer)

Member Function Documentation

◆ getValidatedStatement()

Wikibase\Repo\RestApi\Application\Validation\StatementValidator::getValidatedStatement ( )

◆ validate()

Wikibase\Repo\RestApi\Application\Validation\StatementValidator::validate ( array $statementSerialization)

Member Data Documentation

◆ $deserializedStatement

Statement Wikibase\Repo\RestApi\Application\Validation\StatementValidator::$deserializedStatement = null
private

◆ $deserializer

StatementDeserializer Wikibase\Repo\RestApi\Application\Validation\StatementValidator::$deserializer
private

◆ CODE_INVALID_FIELD

const Wikibase\Repo\RestApi\Application\Validation\StatementValidator::CODE_INVALID_FIELD = 'statement-validator-code-invalid-statement-field'

◆ CODE_MISSING_FIELD

const Wikibase\Repo\RestApi\Application\Validation\StatementValidator::CODE_MISSING_FIELD = 'statement-validator-code-missing-statement-field'

◆ CONTEXT_FIELD

const Wikibase\Repo\RestApi\Application\Validation\StatementValidator::CONTEXT_FIELD = 'statement-validator-context-field'

◆ CONTEXT_VALUE

const Wikibase\Repo\RestApi\Application\Validation\StatementValidator::CONTEXT_VALUE = 'statement-validator-context-value'

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