Immutable value object representing a link to a page on another site.
More...
Immutable value object representing a link to a page on another site.
A set of badges, represented as ItemId objects, acts as flags describing attributes of the linked to page.
- Since
- 0.4
- Copyright
- GPL-2.0-or-later
- Author
- Jeroen De Dauw < jeroe.nosp@m.nded.nosp@m.auw@g.nosp@m.mail.nosp@m..com >
-
Michał Łazowik
-
Thiemo Kreuz
◆ __construct()
Wikibase\DataModel\SiteLink::__construct |
( |
|
$siteId, |
|
|
|
$pageName, |
|
|
|
$badges = null |
|
) |
| |
- Parameters
-
string | $siteId | |
string | $pageName | |
ItemIdSet | ItemId[] | null | $badges | |
- Exceptions
-
◆ equals()
Wikibase\DataModel\SiteLink::equals |
( |
|
$target | ) |
|
- Since
- 0.7.4
- Parameters
-
- Returns
- bool
◆ getBadges()
Wikibase\DataModel\SiteLink::getBadges |
( |
| ) |
|
Badges are not order dependent.
- Since
- 0.5
- Returns
- ItemId[]
◆ getPageName()
Wikibase\DataModel\SiteLink::getPageName |
( |
| ) |
|
◆ getSiteId()
Wikibase\DataModel\SiteLink::getSiteId |
( |
| ) |
|
◆ setBadges()
Wikibase\DataModel\SiteLink::setBadges |
( |
|
$badges | ) |
|
|
private |
- Parameters
-
ItemIdSet | ItemId[] | null | $badges | |
- Exceptions
-
◆ $badges
Wikibase\DataModel\SiteLink::$badges |
|
private |
◆ $pageName
Wikibase\DataModel\SiteLink::$pageName |
|
private |
◆ $siteId
Wikibase\DataModel\SiteLink::$siteId |
|
private |
The documentation for this class was generated from the following file: