Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Repo\ChangeOp\Deserialization\SiteLinkBadgeChangeOpSerializationValidator Class Reference

Validates the structure of the site link's badge change request. More...

Public Member Functions

 __construct (EntityTitleLookup $titleLookup, array $allowedBadgeItemIds)
 
 validateBadgeSerialization (array $serialization)
 

Private Attributes

 $titleLookup
 
 $allowedBadgeItemIds
 

Detailed Description

Validates the structure of the site link's badge change request.

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\ChangeOp\Deserialization\SiteLinkBadgeChangeOpSerializationValidator::__construct ( EntityTitleLookup $titleLookup,
array $allowedBadgeItemIds )
Parameters
EntityTitleLookup$titleLookup
string[]$allowedBadgeItemIds

Member Function Documentation

◆ validateBadgeSerialization()

Wikibase\Repo\ChangeOp\Deserialization\SiteLinkBadgeChangeOpSerializationValidator::validateBadgeSerialization ( array $serialization)
Parameters
string[]$serialization
Exceptions
ChangeOpDeserializationException

Member Data Documentation

◆ $allowedBadgeItemIds

Wikibase\Repo\ChangeOp\Deserialization\SiteLinkBadgeChangeOpSerializationValidator::$allowedBadgeItemIds
private

◆ $titleLookup

Wikibase\Repo\ChangeOp\Deserialization\SiteLinkBadgeChangeOpSerializationValidator::$titleLookup
private

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