Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Repo\Validators\CompositeFingerprintValidator Class Reference

Composite validator for applying multiple validators as one. More...

+ Inheritance diagram for Wikibase\Repo\Validators\CompositeFingerprintValidator:
+ Collaboration diagram for Wikibase\Repo\Validators\CompositeFingerprintValidator:

Public Member Functions

 __construct (array $validators)
 
 validateFingerprint (TermList $labels, TermList $descriptions, EntityId $entityId, array $languageCodes=null)
 Validate a fingerprint by applying each of the validators supplied to the constructor.
 

Private Attributes

 $validators
 

Detailed Description

Composite validator for applying multiple validators as one.

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\Validators\CompositeFingerprintValidator::__construct ( array  $validators)
Parameters
FingerprintValidator[]$validators

Member Function Documentation

◆ validateFingerprint()

Wikibase\Repo\Validators\CompositeFingerprintValidator::validateFingerprint ( TermList  $labels,
TermList  $descriptions,
EntityId  $entityId,
array  $languageCodes = null 
)

Validate a fingerprint by applying each of the validators supplied to the constructor.

See also
FingerprintValidator::validateFingerprint
Parameters
TermList$labels
TermList$descriptions
EntityId$entityId
string[] | null$languageCodes
Returns
Result

Implements Wikibase\Repo\Validators\FingerprintValidator.

Member Data Documentation

◆ $validators

Wikibase\Repo\Validators\CompositeFingerprintValidator::$validators
private

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