Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
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.
 
 getHash ()
 
 equals ( $value)
 
 __serialize ()
 
 __unserialize (array $serialized)
 
- 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

◆ __serialize()

Wikibase\DataModel\Snak\Snak::__serialize ( )

◆ __unserialize()

Wikibase\DataModel\Snak\Snak::__unserialize ( array $serialized)

◆ equals()

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

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\PropertyNoValueSnak, Wikibase\DataModel\Snak\PropertySomeValueSnak, and Wikibase\DataModel\Snak\PropertyValueSnak.


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