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

Validator for checking that entity labels and aliases are unique (per language). More...

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

Public Member Functions

 __construct (LabelDescriptionDuplicateDetector $duplicateDetector)
 
 validateEntity (EntityDocument $entity)
 

Private Attributes

 $duplicateDetector
 

Detailed Description

Validator for checking that entity labels and aliases are unique (per language).

This is used to make sure that Properties have unique labels and aliases.

Author
Daniel Kinzler

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\Validators\LabelUniquenessValidator::__construct ( LabelDescriptionDuplicateDetector  $duplicateDetector)

Member Function Documentation

◆ validateEntity()

Wikibase\Repo\Validators\LabelUniquenessValidator::validateEntity ( EntityDocument  $entity)
See also
EntityValidator::validate()
Parameters
EntityDocument$entity
Returns
Result PhanUndeclaredMethod Phan is confused by intersection types

Implements Wikibase\Repo\Validators\EntityValidator.

Member Data Documentation

◆ $duplicateDetector

Wikibase\Repo\Validators\LabelUniquenessValidator::$duplicateDetector
private

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