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

Public Member Functions

 __construct (LabelsSyntaxValidator $syntaxValidator, PropertyLabelsContentsValidator $contentsValidator)
 
 validateAndDeserialize (TermList $originalLabels, TermList $originalDescriptions, $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\PatchedPropertyLabelsValidator::__construct ( LabelsSyntaxValidator $syntaxValidator,
PropertyLabelsContentsValidator $contentsValidator )

Member Function Documentation

◆ getModifiedLanguages()

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

◆ throwUseCaseError()

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

◆ validateAndDeserialize()

Wikibase\Repo\RestApi\Application\UseCases\PatchPropertyLabels\PatchedPropertyLabelsValidator::validateAndDeserialize ( TermList $originalLabels,
TermList $originalDescriptions,
$labelsSerialization )
Parameters
TermList$originalLabels
TermList$originalDescriptions
mixed$labelsSerialization
Exceptions
UseCaseError
Returns
TermList

Member Data Documentation

◆ $contentsValidator

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

◆ $syntaxValidator

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

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