Wikibase
MediaWiki Wikibase extension
Wikibase\DataModel\Snak\PropertyValueSnak Class Reference

Class representing a property value snak. More...

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

Public Member Functions

 __construct ( $propertyId, DataValue $dataValue)
 Support for passing in an EntityId instance that is not a PropertyId instance has been deprecated since 0.5. More...
 
 getDataValue ()
 Returns the value of the property value snak. More...
 
 serialize ()
 
 unserialize ( $serialized)
 
 getType ()
 
- Public Member Functions inherited from Wikibase\DataModel\Snak\SnakObject
 __construct ( $propertyId)
 Support for passing in an EntityId instance that is not a PropertyId instance has been deprecated since 0.5. More...
 
 getPropertyId ()
 
 getHash ()
 
 equals ( $target)
 

Protected Attributes

 $dataValue
 
- Protected Attributes inherited from Wikibase\DataModel\Snak\SnakObject
 $propertyId
 

Detailed Description

Class representing a property value snak.

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

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

Constructor & Destructor Documentation

◆ __construct()

Wikibase\DataModel\Snak\PropertyValueSnak::__construct (   $propertyId,
DataValue  $dataValue 
)

Support for passing in an EntityId instance that is not a PropertyId instance has been deprecated since 0.5.

Since
0.1
Parameters
PropertyId | EntityId | int$propertyId
DataValue$dataValue

Member Function Documentation

◆ getDataValue()

Wikibase\DataModel\Snak\PropertyValueSnak::getDataValue ( )

Returns the value of the property value snak.

Since
0.1
Returns
DataValue

◆ getType()

Wikibase\DataModel\Snak\PropertyValueSnak::getType ( )
See also
Snak::getType
Since
0.2
Returns
string

Implements Wikibase\DataModel\Snak\Snak.

◆ serialize()

Wikibase\DataModel\Snak\PropertyValueSnak::serialize ( )
See also
Serializable::serialize
Since
7.0 serialization format changed in an incompatible way
Returns
string

Reimplemented from Wikibase\DataModel\Snak\SnakObject.

◆ unserialize()

Wikibase\DataModel\Snak\PropertyValueSnak::unserialize (   $serialized)
See also
Serializable::unserialize
Since
0.1
Parameters
string$serialized

Reimplemented from Wikibase\DataModel\Snak\SnakObject.

Member Data Documentation

◆ $dataValue

Wikibase\DataModel\Snak\PropertyValueSnak::$dataValue
protected

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