Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Repo\DispatchingEntityTypeStatementGrouper Class Reference
+ Inheritance diagram for Wikibase\Repo\DispatchingEntityTypeStatementGrouper:
+ Collaboration diagram for Wikibase\Repo\DispatchingEntityTypeStatementGrouper:

Public Member Functions

 __construct (StatementGuidParser $statementGuidParser, array $statementGroupers)
 
 groupStatements (StatementList $statements)
 

Private Member Functions

 guessStatementGrouper (StatementList $statements)
 
 getEntityType (Statement $statement)
 

Private Attributes

 $statementGroupers = []
 
 $guidParser
 

Detailed Description

Author
Thiemo Kreuz

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\DispatchingEntityTypeStatementGrouper::__construct ( StatementGuidParser $statementGuidParser,
array $statementGroupers )
Parameters
StatementGuidParser$statementGuidParser
StatementGrouper[]$statementGroupersAn associative array, mapping entity types (typically "item" and "property") to StatementGrouper objects.
Exceptions
InvalidArgumentException

Member Function Documentation

◆ getEntityType()

Wikibase\Repo\DispatchingEntityTypeStatementGrouper::getEntityType ( Statement $statement)
private
Parameters
Statement$statement
Returns
string|null

◆ groupStatements()

Wikibase\Repo\DispatchingEntityTypeStatementGrouper::groupStatements ( StatementList $statements)
Parameters
StatementList$statements
Returns
StatementList[]

Implements Wikibase\DataModel\Services\Statement\Grouper\StatementGrouper.

◆ guessStatementGrouper()

Wikibase\Repo\DispatchingEntityTypeStatementGrouper::guessStatementGrouper ( StatementList $statements)
private
Parameters
StatementList$statements
Returns
StatementGrouper

Member Data Documentation

◆ $guidParser

Wikibase\Repo\DispatchingEntityTypeStatementGrouper::$guidParser
private

◆ $statementGroupers

Wikibase\Repo\DispatchingEntityTypeStatementGrouper::$statementGroupers = []
private

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