Wikibase
MediaWiki Wikibase extension
Wikibase\DataModel\Snak\Snak Interface Reference

Interface for objects that represent a single Wikibase snak. More...

+ Inheritance diagram for Wikibase\DataModel\Snak\Snak:
+ Collaboration diagram for Wikibase\DataModel\Snak\Snak:

Public Member Functions

 getType ()
 Returns a string that can be used to identify the type of snak. More...
 
 getHash ()
 
 equals ( $value)
 
- Public Member Functions inherited from Wikibase\DataModel\PropertyIdProvider
 getPropertyId ()
 

Detailed Description

Interface for objects that represent a single Wikibase snak.

See https://www.mediawiki.org/wiki/Wikibase/DataModel#Snaks

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

Member Function Documentation

◆ equals()

Wikibase\DataModel\Snak\Snak::equals (   $value)
Parameters
mixed$value
Returns
boolean

Implemented in Wikibase\DataModel\Snak\SnakObject.

◆ getHash()

Wikibase\DataModel\Snak\Snak::getHash ( )
Returns
string

Implemented in Wikibase\DataModel\Snak\SnakObject.

◆ getType()

Wikibase\DataModel\Snak\Snak::getType ( )

Returns a string that can be used to identify the type of snak.

Since
0.2
Returns
string

Implemented in Wikibase\DataModel\Snak\PropertyValueSnak, Wikibase\DataModel\Snak\PropertySomeValueSnak, and Wikibase\DataModel\Snak\PropertyNoValueSnak.


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