Wikibase
MediaWiki Wikibase extension
Wikibase\Repo\RestApi\UseCases\GetItem\GetItemValidator Class Reference

Public Member Functions

 __construct (ItemIdValidator $itemIdValidator)
 
 validate (GetItemRequest $request)
 

Public Attributes

const SOURCE_ITEM_ID = 'item ID'
 
const SOURCE_FIELDS = 'fields'
 

Private Member Functions

 validateFields (array $fields)
 

Private Attributes

 $itemIdValidator
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\RestApi\UseCases\GetItem\GetItemValidator::__construct ( ItemIdValidator  $itemIdValidator)

Member Function Documentation

◆ validate()

Wikibase\Repo\RestApi\UseCases\GetItem\GetItemValidator::validate ( GetItemRequest  $request)

◆ validateFields()

Wikibase\Repo\RestApi\UseCases\GetItem\GetItemValidator::validateFields ( array  $fields)
private

Member Data Documentation

◆ $itemIdValidator

Wikibase\Repo\RestApi\UseCases\GetItem\GetItemValidator::$itemIdValidator
private

◆ SOURCE_FIELDS

const Wikibase\Repo\RestApi\UseCases\GetItem\GetItemValidator::SOURCE_FIELDS = 'fields'

◆ SOURCE_ITEM_ID

const Wikibase\Repo\RestApi\UseCases\GetItem\GetItemValidator::SOURCE_ITEM_ID = 'item ID'

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