Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Repo\RestApi\Application\UseCases\PatchPropertyLabels\PatchedLabelsValidator Class Reference
+ Collaboration diagram for Wikibase\Repo\RestApi\Application\UseCases\PatchPropertyLabels\PatchedLabelsValidator:

Public Member Functions

 __construct (LabelsSyntaxValidator $syntaxValidator, PropertyLabelsContentsValidator $contentsValidator)
 
 validateAndDeserialize (TermList $originalLabels, TermList $originalDescriptions, array $labelsSerialization)
 

Private Member Functions

 getModifiedLanguages (TermList $original, TermList $modified)
 
 throwUseCaseError (ValidationError $validationError)
 

Private Attributes

LabelsSyntaxValidator $syntaxValidator
 
PropertyLabelsContentsValidator $contentsValidator
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\RestApi\Application\UseCases\PatchPropertyLabels\PatchedLabelsValidator::__construct ( LabelsSyntaxValidator $syntaxValidator,
PropertyLabelsContentsValidator $contentsValidator )

Member Function Documentation

◆ getModifiedLanguages()

Wikibase\Repo\RestApi\Application\UseCases\PatchPropertyLabels\PatchedLabelsValidator::getModifiedLanguages ( TermList $original,
TermList $modified )
private

◆ throwUseCaseError()

Wikibase\Repo\RestApi\Application\UseCases\PatchPropertyLabels\PatchedLabelsValidator::throwUseCaseError ( ValidationError $validationError)
private
Returns
never

◆ validateAndDeserialize()

Wikibase\Repo\RestApi\Application\UseCases\PatchPropertyLabels\PatchedLabelsValidator::validateAndDeserialize ( TermList $originalLabels,
TermList $originalDescriptions,
array $labelsSerialization )
Exceptions
UseCaseError

Member Data Documentation

◆ $contentsValidator

PropertyLabelsContentsValidator Wikibase\Repo\RestApi\Application\UseCases\PatchPropertyLabels\PatchedLabelsValidator::$contentsValidator
private

◆ $syntaxValidator

LabelsSyntaxValidator Wikibase\Repo\RestApi\Application\UseCases\PatchPropertyLabels\PatchedLabelsValidator::$syntaxValidator
private

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