Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Lib\ServiceBySourceAndTypeDispatcher Class Reference

Public Member Functions

 __construct (string $type, array $callbacks)
 
 getServiceForSourceAndType (string $sourceName, string $entityType, array $callbackArgs=[])
 

Private Member Functions

 createService (string $sourceName, string $entityType, array $args=[])
 

Private Attributes

 $callbacks
 
 $services
 
 $serviceType
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Lib\ServiceBySourceAndTypeDispatcher::__construct ( string $type,
array $callbacks )
Parameters
string$typetype of the dispatched services, i.e. type of the return value of the callbacks
array[][]$callbacksmap of entity source names and types to callbacks creating the service to be used

Member Function Documentation

◆ createService()

Wikibase\Lib\ServiceBySourceAndTypeDispatcher::createService ( string $sourceName,
string $entityType,
array $args = [] )
private

◆ getServiceForSourceAndType()

Wikibase\Lib\ServiceBySourceAndTypeDispatcher::getServiceForSourceAndType ( string $sourceName,
string $entityType,
array $callbackArgs = [] )

Member Data Documentation

◆ $callbacks

Wikibase\Lib\ServiceBySourceAndTypeDispatcher::$callbacks
private

◆ $services

Wikibase\Lib\ServiceBySourceAndTypeDispatcher::$services
private

◆ $serviceType

Wikibase\Lib\ServiceBySourceAndTypeDispatcher::$serviceType
private

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