Wikibase
MediaWiki Wikibase extension
Wikibase\Repo\RestApi\UseCases\AddItemStatement\AddItemStatementValidator Class Reference

Public Member Functions

 __construct (ItemIdValidator $itemIdValidator, StatementValidator $statementValidator, EditMetadataValidator $editMetadataValidator)
 
 validate (AddItemStatementRequest $request)
 
 getValidatedStatement ()
 

Public Attributes

const SOURCE_ITEM_ID = 'item ID'
 
const SOURCE_STATEMENT = 'statement'
 
const SOURCE_COMMENT = 'comment'
 
const SOURCE_EDIT_TAGS = 'edit tags'
 

Private Attributes

 $statementValidator
 
 $itemIdValidator
 
 $editMetadataValidator
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\RestApi\UseCases\AddItemStatement\AddItemStatementValidator::__construct ( ItemIdValidator  $itemIdValidator,
StatementValidator  $statementValidator,
EditMetadataValidator  $editMetadataValidator 
)

Member Function Documentation

◆ getValidatedStatement()

Wikibase\Repo\RestApi\UseCases\AddItemStatement\AddItemStatementValidator::getValidatedStatement ( )

◆ validate()

Wikibase\Repo\RestApi\UseCases\AddItemStatement\AddItemStatementValidator::validate ( AddItemStatementRequest  $request)

Member Data Documentation

◆ $editMetadataValidator

Wikibase\Repo\RestApi\UseCases\AddItemStatement\AddItemStatementValidator::$editMetadataValidator
private

◆ $itemIdValidator

Wikibase\Repo\RestApi\UseCases\AddItemStatement\AddItemStatementValidator::$itemIdValidator
private

◆ $statementValidator

Wikibase\Repo\RestApi\UseCases\AddItemStatement\AddItemStatementValidator::$statementValidator
private

◆ SOURCE_COMMENT

const Wikibase\Repo\RestApi\UseCases\AddItemStatement\AddItemStatementValidator::SOURCE_COMMENT = 'comment'

◆ SOURCE_EDIT_TAGS

const Wikibase\Repo\RestApi\UseCases\AddItemStatement\AddItemStatementValidator::SOURCE_EDIT_TAGS = 'edit tags'

◆ SOURCE_ITEM_ID

const Wikibase\Repo\RestApi\UseCases\AddItemStatement\AddItemStatementValidator::SOURCE_ITEM_ID = 'item ID'

◆ SOURCE_STATEMENT

const Wikibase\Repo\RestApi\UseCases\AddItemStatement\AddItemStatementValidator::SOURCE_STATEMENT = 'statement'

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