Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\DataModel\Term\TermFallback Class Reference

Immutable value object. More...

+ Inheritance diagram for Wikibase\DataModel\Term\TermFallback:
+ Collaboration diagram for Wikibase\DataModel\Term\TermFallback:

Public Member Functions

 __construct ( $requestedLanguageCode, $text, $actualLanguageCode, $sourceLanguageCode)
 
 getActualLanguageCode ()
 
 getSourceLanguageCode ()
 
 equals ( $target)
 
- Public Member Functions inherited from Wikibase\DataModel\Term\Term
 __construct ( $languageCode, $text)
 
 getLanguageCode ()
 Language code.
 
 getText ()
 

Private Attributes

 $actualLanguageCode
 
 $sourceLanguageCode
 

Detailed Description

Immutable value object.

Since
2.4.0
Author
Jan Zerebecki < jan.w.nosp@m.ikim.nosp@m.edia@.nosp@m.zere.nosp@m.becki.nosp@m..de >

Constructor & Destructor Documentation

◆ __construct()

Wikibase\DataModel\Term\TermFallback::__construct ( $requestedLanguageCode,
$text,
$actualLanguageCode,
$sourceLanguageCode )
Parameters
string$requestedLanguageCodeRequested language, not necessarily the language of the text.
string$text
string$actualLanguageCodeActual language of the text.
string | null$sourceLanguageCodeSource language if the text is a transliteration.
Exceptions
InvalidArgumentException

Member Function Documentation

◆ equals()

Wikibase\DataModel\Term\TermFallback::equals ( $target)
Parameters
mixed$target
Returns
bool

Reimplemented from Wikibase\DataModel\Term\Term.

◆ getActualLanguageCode()

Wikibase\DataModel\Term\TermFallback::getActualLanguageCode ( )
Returns
string

◆ getSourceLanguageCode()

Wikibase\DataModel\Term\TermFallback::getSourceLanguageCode ( )
Returns
string|null

Member Data Documentation

◆ $actualLanguageCode

Wikibase\DataModel\Term\TermFallback::$actualLanguageCode
private

◆ $sourceLanguageCode

Wikibase\DataModel\Term\TermFallback::$sourceLanguageCode
private

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