Class representing a property value snak.
More...
Class representing a property value snak.
See https://www.mediawiki.org/wiki/Wikibase/DataModel#PropertyValueSnak
- Since
- 0.1
- Copyright
- GPL-2.0-or-later
- Author
- Jeroen De Dauw < jeroe.nosp@m.nded.nosp@m.auw@g.nosp@m.mail.nosp@m..com >
-
Daniel Kinzler
◆ __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 | |
◆ __serialize()
Wikibase\DataModel\Snak\PropertyValueSnak::__serialize |
( |
| ) |
|
◆ __unserialize()
Wikibase\DataModel\Snak\PropertyValueSnak::__unserialize |
( |
array | $serialized | ) |
|
◆ getDataValue()
Wikibase\DataModel\Snak\PropertyValueSnak::getDataValue |
( |
| ) |
|
Returns the value of the property value snak.
- Since
- 0.1
- Returns
- DataValue
◆ getDataValueSerializationForHash()
Wikibase\DataModel\Snak\PropertyValueSnak::getDataValueSerializationForHash |
( |
| ) |
|
|
private |
The serialization to use for hashing, for compatibility reasons this is equivalent to the old (pre 7.4) PHP serialization.
- Returns
- string
◆ getSerializationForHash()
Wikibase\DataModel\Snak\PropertyValueSnak::getSerializationForHash |
( |
| ) |
|
The serialization to use for hashing, for compatibility reasons this is equivalent to the old (pre 7.4) PHP serialization.
- Returns
- string
Reimplemented from Wikibase\DataModel\Snak\SnakObject.
◆ getType()
Wikibase\DataModel\Snak\PropertyValueSnak::getType |
( |
| ) |
|
◆ serialize()
Wikibase\DataModel\Snak\PropertyValueSnak::serialize |
( |
| ) |
|
◆ unserialize()
Wikibase\DataModel\Snak\PropertyValueSnak::unserialize |
( |
| $serialized | ) |
|
◆ $dataValue
Wikibase\DataModel\Snak\PropertyValueSnak::$dataValue |
|
protected |
The documentation for this class was generated from the following file: