Object that represents a single Wikibase reference.
More...
Object that represents a single Wikibase reference.
See https://www.mediawiki.org/wiki/Wikibase/DataModel#ReferenceRecords
- Since
- 0.1, instantiable 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 >
◆ __construct()
Wikibase\DataModel\Reference::__construct |
( |
|
$snaks = [] | ) |
|
An array of Snak objects is only supported since version 1.1.
- Parameters
-
- Exceptions
-
◆ count()
Wikibase\DataModel\Reference::count |
( |
| ) |
|
- See also
- Countable::count
- Since
- 0.3
- Returns
- integer
◆ equals()
Wikibase\DataModel\Reference::equals |
( |
|
$target | ) |
|
The comparison is done purely value based, ignoring the order of the snaks.
- Since
- 0.3
- Parameters
-
- Returns
- bool
◆ getHash()
Wikibase\DataModel\Reference::getHash |
( |
| ) |
|
◆ getSnaks()
Wikibase\DataModel\Reference::getSnaks |
( |
| ) |
|
Returns the property snaks that make up this reference.
Modification of the snaks should NOT happen through this getter.
- Since
- 0.1
- Returns
- SnakList
◆ isEmpty()
Wikibase\DataModel\Reference::isEmpty |
( |
| ) |
|
◆ $snaks
Wikibase\DataModel\Reference::$snaks |
|
private |
The documentation for this class was generated from the following file: