Wikibase
MediaWiki Wikibase extension
Wikibase\Repo\Validators\UniquenessViolation Class Reference

Represents a violation of a uniqueness constraint. More...

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

Public Member Functions

 __construct (EntityId $conflictingEntity, $text, $code, array $params)
 
 getConflictingEntity ()
 

Private Attributes

 $conflictingEntity
 

Detailed Description

Represents a violation of a uniqueness constraint.

Author
Daniel Kinzler

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\Validators\UniquenessViolation::__construct ( EntityId  $conflictingEntity,
  $text,
  $code,
array  $params 
)
See also
Error::__construct()
Parameters
EntityId$conflictingEntityThe entity causing the conflict
string$text
string$code
mixed[]$params

Member Function Documentation

◆ getConflictingEntity()

Wikibase\Repo\Validators\UniquenessViolation::getConflictingEntity ( )
Returns
EntityId

Member Data Documentation

◆ $conflictingEntity

Wikibase\Repo\Validators\UniquenessViolation::$conflictingEntity
private

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