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 (LabelsDeserializer $labelsDeserializer, PropertyLabelValidator $labelValidator, LanguageCodeValidator $languageCodeValidator)
 
 validateAndDeserialize (PropertyId $propertyId, TermList $originalLabels, array $labelsSerialization)
 

Private Member Functions

 deserializeLabels (array $labelsSerialization)
 
 getModifiedLabels (TermList $original, TermList $modified)
 
 validateLabel (PropertyId $propertyId, Term $label)
 
 validateLanguageCode (Term $label)
 

Private Attributes

LabelsDeserializer $labelsDeserializer
 
PropertyLabelValidator $labelValidator
 
LanguageCodeValidator $languageCodeValidator
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\RestApi\Application\UseCases\PatchPropertyLabels\PatchedLabelsValidator::__construct ( LabelsDeserializer $labelsDeserializer,
PropertyLabelValidator $labelValidator,
LanguageCodeValidator $languageCodeValidator )

Member Function Documentation

◆ deserializeLabels()

Wikibase\Repo\RestApi\Application\UseCases\PatchPropertyLabels\PatchedLabelsValidator::deserializeLabels ( array $labelsSerialization)
private

◆ getModifiedLabels()

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

◆ validateAndDeserialize()

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

◆ validateLabel()

Wikibase\Repo\RestApi\Application\UseCases\PatchPropertyLabels\PatchedLabelsValidator::validateLabel ( PropertyId $propertyId,
Term $label )
private

◆ validateLanguageCode()

Wikibase\Repo\RestApi\Application\UseCases\PatchPropertyLabels\PatchedLabelsValidator::validateLanguageCode ( Term $label)
private

Member Data Documentation

◆ $labelsDeserializer

LabelsDeserializer Wikibase\Repo\RestApi\Application\UseCases\PatchPropertyLabels\PatchedLabelsValidator::$labelsDeserializer
private

◆ $labelValidator

PropertyLabelValidator Wikibase\Repo\RestApi\Application\UseCases\PatchPropertyLabels\PatchedLabelsValidator::$labelValidator
private

◆ $languageCodeValidator

LanguageCodeValidator Wikibase\Repo\RestApi\Application\UseCases\PatchPropertyLabels\PatchedLabelsValidator::$languageCodeValidator
private

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