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

Ordered set of aliases. More...

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

Public Member Functions

 __construct ( $languageCode, array $aliases=[])
 
 getLanguageCode ()
 
 getAliases ()
 
 isEmpty ()
 
 equals ( $target)
 
 count ()
 

Private Attributes

 $languageCode
 
 $aliases
 

Detailed Description

Ordered set of aliases.

Immutable value object.

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

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

Constructor & Destructor Documentation

◆ __construct()

Wikibase\DataModel\Term\AliasGroup::__construct ( $languageCode,
array $aliases = [] )
Parameters
string$languageCodeLanguage of the aliases.
string[]$aliases
Exceptions
InvalidArgumentException

Member Function Documentation

◆ count()

Wikibase\DataModel\Term\AliasGroup::count ( )
See also
Countable::count
Returns
int

◆ equals()

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

Reimplemented in Wikibase\DataModel\Term\AliasGroupFallback.

◆ getAliases()

Wikibase\DataModel\Term\AliasGroup::getAliases ( )
Returns
string[]

◆ getLanguageCode()

Wikibase\DataModel\Term\AliasGroup::getLanguageCode ( )
Returns
string

◆ isEmpty()

Wikibase\DataModel\Term\AliasGroup::isEmpty ( )
Returns
bool

Member Data Documentation

◆ $aliases

Wikibase\DataModel\Term\AliasGroup::$aliases
private

◆ $languageCode

Wikibase\DataModel\Term\AliasGroup::$languageCode
private

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