Wikibase
MediaWiki Wikibase extension
|
PropertyValueSnak with with derived values attached. More...
Public Member Functions | |
__construct ( $propertyId, DataValue $dataValue, array $derivedDataValues) | |
getDerivedDataValues () | |
getDerivedDataValue ( $key) | |
newPropertyValueSnak () | |
Public Member Functions inherited from 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. 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) | |
Private Attributes | |
$derivedDataValues = [] | |
Additional Inherited Members | |
Protected Attributes inherited from Wikibase\DataModel\Snak\PropertyValueSnak | |
$dataValue | |
Protected Attributes inherited from Wikibase\DataModel\Snak\SnakObject | |
$propertyId | |
PropertyValueSnak with with derived values attached.
Derived DataValues can be used to provide information such as normalized values.
Calls to the getType method will indicate that this is a PropertyValueSnak.
Direct serialization of this object will not include the extra derived values.
The hash of this object is not changed by additional Derived values. The hash of this object will differ from the PropertyValueSnak of this object.
This object will ->equal other DerivedPropertyValueSnaks with the same base PropertyValueSnak. This object will NOT ->equal any PropertyValueSnaks. A newPropertyValueSnak method is provided for comparison convenience.
Wikibase\DataModel\Snak\DerivedPropertyValueSnak::__construct | ( | $propertyId, | |
DataValue | $dataValue, | ||
array | $derivedDataValues | ||
) |
PropertyId | EntityId | int | $propertyId | |
DataValue | $dataValue | |
DataValue[] | $derivedDataValues |
InvalidArgumentException |
Wikibase\DataModel\Snak\DerivedPropertyValueSnak::getDerivedDataValue | ( | $key | ) |
string | $key |
Wikibase\DataModel\Snak\DerivedPropertyValueSnak::getDerivedDataValues | ( | ) |
Wikibase\DataModel\Snak\DerivedPropertyValueSnak::newPropertyValueSnak | ( | ) |
|
private |