Wikibase
MediaWiki Wikibase extension
Wikibase\DataModel\Deserializers\SnakDeserializer Class Reference

Package private. More...

+ Inheritance diagram for Wikibase\DataModel\Deserializers\SnakDeserializer:
+ Collaboration diagram for Wikibase\DataModel\Deserializers\SnakDeserializer:

Public Member Functions

 __construct (EntityIdParser $propertyIdParser, Deserializer $dataValueDeserializer)
 
 isDeserializerFor ( $serialization)
 
 deserialize ( $serialization)
 

Private Member Functions

 hasSnakType ( $serialization)
 
 hasCorrectSnakType ( $serialization)
 
 getDeserialized (array $serialization)
 
 newNoValueSnak (array $serialization)
 
 newSomeValueSnak (array $serialization)
 
 newValueSnak (array $serialization)
 
 deserializeDataValue ( $serialization)
 
 deserializePropertyId ( $serialization)
 
 assertCanDeserialize ( $serialization)
 
 requireAttribute (array $array, $attributeName)
 

Private Attributes

 $dataValueDeserializer
 
 $propertyIdParser
 

Detailed Description

Package private.

Author
Jeroen De Dauw < jeroe.nosp@m.nded.nosp@m.auw@g.nosp@m.mail.nosp@m..com >
Thomas Pellissier Tanon

Constructor & Destructor Documentation

◆ __construct()

Wikibase\DataModel\Deserializers\SnakDeserializer::__construct ( EntityIdParser  $propertyIdParser,
Deserializer  $dataValueDeserializer 
)

Member Function Documentation

◆ assertCanDeserialize()

Wikibase\DataModel\Deserializers\SnakDeserializer::assertCanDeserialize (   $serialization)
private

◆ deserialize()

Wikibase\DataModel\Deserializers\SnakDeserializer::deserialize (   $serialization)
See also
Deserializer::deserialize
Parameters
array$serialization
Exceptions
DeserializationException
Returns
PropertyNoValueSnak|PropertySomeValueSnak|PropertyValueSnak

◆ deserializeDataValue()

Wikibase\DataModel\Deserializers\SnakDeserializer::deserializeDataValue (   $serialization)
private
Parameters
array$serialization
Returns
DataValue

◆ deserializePropertyId()

Wikibase\DataModel\Deserializers\SnakDeserializer::deserializePropertyId (   $serialization)
private
Parameters
string$serialization
Exceptions
InvalidAttributeException
Returns
PropertyId

◆ getDeserialized()

Wikibase\DataModel\Deserializers\SnakDeserializer::getDeserialized ( array  $serialization)
private
See also
SnakDeserializer::hasCorrectSnakType
Parameters
array$serialization
Exceptions
InvalidAttributeException
Returns
PropertyNoValueSnak|PropertySomeValueSnak|PropertyValueSnak

◆ hasCorrectSnakType()

Wikibase\DataModel\Deserializers\SnakDeserializer::hasCorrectSnakType (   $serialization)
private

◆ hasSnakType()

Wikibase\DataModel\Deserializers\SnakDeserializer::hasSnakType (   $serialization)
private

◆ isDeserializerFor()

Wikibase\DataModel\Deserializers\SnakDeserializer::isDeserializerFor (   $serialization)
See also
Deserializer::isDeserializerFor
Parameters
mixed$serialization
Returns
bool

◆ newNoValueSnak()

Wikibase\DataModel\Deserializers\SnakDeserializer::newNoValueSnak ( array  $serialization)
private

◆ newSomeValueSnak()

Wikibase\DataModel\Deserializers\SnakDeserializer::newSomeValueSnak ( array  $serialization)
private

◆ newValueSnak()

Wikibase\DataModel\Deserializers\SnakDeserializer::newValueSnak ( array  $serialization)
private

◆ requireAttribute()

Wikibase\DataModel\Deserializers\SnakDeserializer::requireAttribute ( array  $array,
  $attributeName 
)
private

Member Data Documentation

◆ $dataValueDeserializer

Wikibase\DataModel\Deserializers\SnakDeserializer::$dataValueDeserializer
private

◆ $propertyIdParser

Wikibase\DataModel\Deserializers\SnakDeserializer::$propertyIdParser
private

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