Wikibase
MediaWiki Wikibase extension
Wikibase\Repo\Merge\Validator\NoCrossReferencingStatements Class Reference

Public Member Functions

 validate (StatementListProvidingEntity $source, StatementListProvidingEntity $target)
 
 getViolations ()
 

Private Member Functions

 checkStatementHasLink (Statement $statement, EntityId $id)
 
 checkSnakIsLink (Snak $snak, EntityId $id)
 

Private Attributes

 $violations = []
 

Detailed Description

Member Function Documentation

◆ checkSnakIsLink()

Wikibase\Repo\Merge\Validator\NoCrossReferencingStatements::checkSnakIsLink ( Snak  $snak,
EntityId  $id 
)
private

◆ checkStatementHasLink()

Wikibase\Repo\Merge\Validator\NoCrossReferencingStatements::checkStatementHasLink ( Statement  $statement,
EntityId  $id 
)
private

◆ getViolations()

Wikibase\Repo\Merge\Validator\NoCrossReferencingStatements::getViolations ( )
Returns
PropertyId[] Properties used to link across

◆ validate()

Wikibase\Repo\Merge\Validator\NoCrossReferencingStatements::validate ( StatementListProvidingEntity  $source,
StatementListProvidingEntity  $target 
)

Member Data Documentation

◆ $violations

Wikibase\Repo\Merge\Validator\NoCrossReferencingStatements::$violations = []
private

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