Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Repo\EntityReferenceExtractors\StatementEntityReferenceExtractor Class Reference

Extracts ids of entities that are referenced on a given entity within its statements. More...

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

Public Member Functions

 __construct (SuffixEntityIdParser $quantityUnitEntityIdUriParser)
 
 extractEntityIds (EntityDocument $entity)
 

Private Member Functions

 processStatement (Statement $statement)
 
 processSnak (Snak $snak)
 
 processDataValue (DataValue $dataValue)
 
 processQuantityUnitUri ( $uri)
 

Private Attributes

 $entityIds = []
 
 $quantityUnitEntityIdUriParser
 

Detailed Description

Extracts ids of entities that are referenced on a given entity within its statements.

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\EntityReferenceExtractors\StatementEntityReferenceExtractor::__construct ( SuffixEntityIdParser $quantityUnitEntityIdUriParser)

Member Function Documentation

◆ extractEntityIds()

Wikibase\Repo\EntityReferenceExtractors\StatementEntityReferenceExtractor::extractEntityIds ( EntityDocument $entity)
Parameters
EntityDocument | StatementListProvider$entity
Returns
EntityId[] PhanTypeMismatchDeclaredParam,PhanUndeclaredMethod Intersection type

Implements Wikibase\Repo\EntityReferenceExtractors\EntityReferenceExtractor.

◆ processDataValue()

Wikibase\Repo\EntityReferenceExtractors\StatementEntityReferenceExtractor::processDataValue ( DataValue $dataValue)
private

◆ processQuantityUnitUri()

Wikibase\Repo\EntityReferenceExtractors\StatementEntityReferenceExtractor::processQuantityUnitUri ( $uri)
private

◆ processSnak()

Wikibase\Repo\EntityReferenceExtractors\StatementEntityReferenceExtractor::processSnak ( Snak $snak)
private

◆ processStatement()

Wikibase\Repo\EntityReferenceExtractors\StatementEntityReferenceExtractor::processStatement ( Statement $statement)
private

Member Data Documentation

◆ $entityIds

Wikibase\Repo\EntityReferenceExtractors\StatementEntityReferenceExtractor::$entityIds = []
private

◆ $quantityUnitEntityIdUriParser

Wikibase\Repo\EntityReferenceExtractors\StatementEntityReferenceExtractor::$quantityUnitEntityIdUriParser
private

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