Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\DataModel\Services\Lookup\LegacyAdapterItemLookup Class Reference

ItemLookup implementation providing a migration path away from the EntityLookup interface. More...

+ Inheritance diagram for Wikibase\DataModel\Services\Lookup\LegacyAdapterItemLookup:
+ Collaboration diagram for Wikibase\DataModel\Services\Lookup\LegacyAdapterItemLookup:

Public Member Functions

 __construct (EntityLookup $lookup)
 
 getItemForId (ItemId $itemId)
 

Private Attributes

 $lookup
 

Detailed Description

ItemLookup implementation providing a migration path away from the EntityLookup interface.

Author
Jeroen De Dauw < jeroe.nosp@m.nded.nosp@m.auw@g.nosp@m.mail.nosp@m..com >

Constructor & Destructor Documentation

◆ __construct()

Wikibase\DataModel\Services\Lookup\LegacyAdapterItemLookup::__construct ( EntityLookup $lookup)

Member Function Documentation

◆ getItemForId()

Wikibase\DataModel\Services\Lookup\LegacyAdapterItemLookup::getItemForId ( ItemId $itemId)
Parameters
ItemId$itemId
Returns
Item|null
Exceptions
ItemLookupException

Implements Wikibase\DataModel\Services\Lookup\ItemLookup.

Member Data Documentation

◆ $lookup

Wikibase\DataModel\Services\Lookup\LegacyAdapterItemLookup::$lookup
private

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