Wikibase
MediaWiki Wikibase extension
Wikibase\Lib\UnionContentLanguages Class Reference

Provide languages supported as content languages based on two ContentLanguages. More...

+ Inheritance diagram for Wikibase\Lib\UnionContentLanguages:
+ Collaboration diagram for Wikibase\Lib\UnionContentLanguages:

Public Member Functions

 __construct (ContentLanguages $a, ContentLanguages $b)
 
 getLanguages ()
 
 hasLanguage ( $languageCode)
 

Private Member Functions

 getLanguageCodes ()
 

Private Attributes

 $a
 
 $b
 
 $languageCodes = null
 

Detailed Description

Provide languages supported as content languages based on two ContentLanguages.

Author
Adrian Heine adria.nosp@m.n.he.nosp@m.ine@w.nosp@m.ikim.nosp@m.edia..nosp@m.de

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Lib\UnionContentLanguages::__construct ( ContentLanguages  $a,
ContentLanguages  $b 
)

Member Function Documentation

◆ getLanguageCodes()

Wikibase\Lib\UnionContentLanguages::getLanguageCodes ( )
private
Returns
string[] Array of language codes

◆ getLanguages()

Wikibase\Lib\UnionContentLanguages::getLanguages ( )
Returns
string[] Array of language codes supported as content language

Implements Wikibase\Lib\ContentLanguages.

◆ hasLanguage()

Wikibase\Lib\UnionContentLanguages::hasLanguage (   $languageCode)
Parameters
string$languageCode
Returns
bool

Implements Wikibase\Lib\ContentLanguages.

Member Data Documentation

◆ $a

Wikibase\Lib\UnionContentLanguages::$a
private

◆ $b

Wikibase\Lib\UnionContentLanguages::$b
private

◆ $languageCodes

Wikibase\Lib\UnionContentLanguages::$languageCodes = null
private

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