Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
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 
)
Parameters
StatementListProvidingEntity$source
StatementListProvidingEntity$target
Returns
bool

Member Data Documentation

◆ $violations

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

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