- Copyright
- GPL-2.0-or-later
◆ __construct()
◆ collectViolations()
Wikibase\Lexeme\Domain\Merge\NoCrossReferencingLexemeStatements::collectViolations |
( |
LexemeId | $entityIdsFrom, |
|
|
array | $entityIds, |
|
|
LexemeId | $notToReference ) |
|
private |
- Parameters
-
LexemeId | $entityIdsFrom | The LexemeId that the $entityIds references are from |
EntityId[] | $entityIds | The list of EntityIds that we are checking |
LexemeId | $notToReference | The LexemeId that when referenced will cause violations |
◆ getViolations()
Wikibase\Lexeme\Domain\Merge\NoCrossReferencingLexemeStatements::getViolations |
( |
| ) |
|
Get violations of all validate() calls.
- Returns
- array[] with each element containing: [ LexemeId $source, EntityId $reference, LexemeId $target ] Where:
- $source is the source Lexeme of the reference
- $reference is the reference to $target
- $target is the LexemeId being referenced
◆ validate()
Wikibase\Lexeme\Domain\Merge\NoCrossReferencingLexemeStatements::validate |
( |
Lexeme | $one, |
|
|
Lexeme | $two ) |
Validate the two Lexemes and collect the violations along with any violations from previous calls.
- Parameters
-
- Returns
- bool true if valid
◆ $refExtractor
Wikibase\Lexeme\Domain\Merge\NoCrossReferencingLexemeStatements::$refExtractor |
|
private |
◆ $violations
Wikibase\Lexeme\Domain\Merge\NoCrossReferencingLexemeStatements::$violations = [] |
|
private |
The documentation for this class was generated from the following file: