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

Public Member Functions

 __construct (DescriptionsSyntaxValidator $syntaxValidator, PropertyDescriptionsContentsValidator $contentsValidator)
 
 validateAndDeserialize (TermList $originalDescriptions, TermList $originalLabels, array $descriptionsSerialization)
 

Private Member Functions

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

Private Attributes

DescriptionsSyntaxValidator $syntaxValidator
 
PropertyDescriptionsContentsValidator $contentsValidator
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\RestApi\Application\UseCases\PatchPropertyDescriptions\PatchedPropertyDescriptionsValidator::__construct ( DescriptionsSyntaxValidator $syntaxValidator,
PropertyDescriptionsContentsValidator $contentsValidator )

Member Function Documentation

◆ getModifiedLanguages()

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

◆ throwUseCaseError()

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

◆ validateAndDeserialize()

Wikibase\Repo\RestApi\Application\UseCases\PatchPropertyDescriptions\PatchedPropertyDescriptionsValidator::validateAndDeserialize ( TermList $originalDescriptions,
TermList $originalLabels,
array $descriptionsSerialization )
Exceptions
UseCaseError

Member Data Documentation

◆ $contentsValidator

PropertyDescriptionsContentsValidator Wikibase\Repo\RestApi\Application\UseCases\PatchPropertyDescriptions\PatchedPropertyDescriptionsValidator::$contentsValidator
private

◆ $syntaxValidator

DescriptionsSyntaxValidator Wikibase\Repo\RestApi\Application\UseCases\PatchPropertyDescriptions\PatchedPropertyDescriptionsValidator::$syntaxValidator
private

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