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

Ordered set of aliases resulting from language fall back. More...

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

Public Member Functions

 __construct ( $requestedLanguageCode, array $aliases, $actualLanguageCode, $sourceLanguageCode)
 
 getActualLanguageCode ()
 
 getSourceLanguageCode ()
 
 equals ( $target)
 
- Public Member Functions inherited from Wikibase\DataModel\Term\AliasGroup
 __construct ( $languageCode, array $aliases=[])
 
 getLanguageCode ()
 
 getAliases ()
 
 isEmpty ()
 
 count ()
 

Private Attributes

 $actualLanguageCode
 
 $sourceLanguageCode
 

Detailed Description

Ordered set of aliases resulting from language fall back.

Immutable value object.

Duplicates and whitespace only values are removed. Values are trimmed.

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\AliasGroupFallback::__construct ( $requestedLanguageCode,
array $aliases,
$actualLanguageCode,
$sourceLanguageCode )
Parameters
string$requestedLanguageCodeRequested language, not necessarily the language of the aliases.
string[]$aliases
string$actualLanguageCodeActual language of the aliases.
string | null$sourceLanguageCodeSource language if the aliases are transliterations.
Exceptions
InvalidArgumentException

Member Function Documentation

◆ equals()

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

Reimplemented from Wikibase\DataModel\Term\AliasGroup.

◆ getActualLanguageCode()

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

◆ getSourceLanguageCode()

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

Member Data Documentation

◆ $actualLanguageCode

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

◆ $sourceLanguageCode

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

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