Wikibase
MediaWiki Wikibase extension
Wikibase\Repo\EntityReferenceExtractors\EntityReferenceExtractorDelegator Class Reference

Uses an EntityReferenceExtractor based on the given entity's type. More...

+ Inheritance diagram for Wikibase\Repo\EntityReferenceExtractors\EntityReferenceExtractorDelegator:
+ Collaboration diagram for Wikibase\Repo\EntityReferenceExtractors\EntityReferenceExtractorDelegator:

Public Member Functions

 __construct (array $callbacks, StatementEntityReferenceExtractor $statementEntityReferenceExtractor)
 
 extractEntityIds (EntityDocument $entity)
 

Private Attributes

 $callbacks
 
 $statementEntityReferenceExtractor
 

Detailed Description

Uses an EntityReferenceExtractor based on the given entity's type.

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\EntityReferenceExtractors\EntityReferenceExtractorDelegator::__construct ( array  $callbacks,
StatementEntityReferenceExtractor  $statementEntityReferenceExtractor 
)
Parameters
array$callbacks- maps entity types to EntityReferenceExtractors
StatementEntityReferenceExtractor$statementEntityReferenceExtractor

Member Function Documentation

◆ extractEntityIds()

Wikibase\Repo\EntityReferenceExtractors\EntityReferenceExtractorDelegator::extractEntityIds ( EntityDocument  $entity)
Parameters
EntityDocument$entity
Returns
EntityId[] There is no guarantee that array elements will be unique.

Implements Wikibase\Repo\EntityReferenceExtractors\EntityReferenceExtractor.

Member Data Documentation

◆ $callbacks

Wikibase\Repo\EntityReferenceExtractors\EntityReferenceExtractorDelegator::$callbacks
private

◆ $statementEntityReferenceExtractor

Wikibase\Repo\EntityReferenceExtractors\EntityReferenceExtractorDelegator::$statementEntityReferenceExtractor
private

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