Wikibase
MediaWiki Wikibase extension
Wikibase\DataModel\Services\Lookup\LanguageLabelDescriptionLookup Class Reference
+ Inheritance diagram for Wikibase\DataModel\Services\Lookup\LanguageLabelDescriptionLookup:
+ Collaboration diagram for Wikibase\DataModel\Services\Lookup\LanguageLabelDescriptionLookup:

Public Member Functions

 __construct (TermLookup $termLookup, $languageCode)
 
 getLabel (EntityId $entityId)
 
 getDescription (EntityId $entityId)
 

Private Attributes

 $termLookup
 
 $languageCode
 

Detailed Description

Since
1.1
Author
Katie Filbert < aude..nosp@m.wiki.nosp@m.@gmai.nosp@m.l.co.nosp@m.m >
Marius Hoch < hoo@o.nosp@m.nlin.nosp@m.e.de >
Addshore

Constructor & Destructor Documentation

◆ __construct()

Wikibase\DataModel\Services\Lookup\LanguageLabelDescriptionLookup::__construct ( TermLookup  $termLookup,
  $languageCode 
)
Parameters
TermLookup$termLookup
string$languageCode

Member Function Documentation

◆ getDescription()

Wikibase\DataModel\Services\Lookup\LanguageLabelDescriptionLookup::getDescription ( EntityId  $entityId)
Parameters
EntityId$entityId
Exceptions
LabelDescriptionLookupException
Returns
Term|null

Implements Wikibase\DataModel\Services\Lookup\LabelDescriptionLookup.

◆ getLabel()

Wikibase\DataModel\Services\Lookup\LanguageLabelDescriptionLookup::getLabel ( EntityId  $entityId)
Parameters
EntityId$entityId
Exceptions
LabelDescriptionLookupException
Returns
Term|null

Implements Wikibase\DataModel\Services\Lookup\LabelLookup.

Member Data Documentation

◆ $languageCode

Wikibase\DataModel\Services\Lookup\LanguageLabelDescriptionLookup::$languageCode
private

◆ $termLookup

Wikibase\DataModel\Services\Lookup\LanguageLabelDescriptionLookup::$termLookup
private

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