Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Repo\RestApi\Application\Serialization\PropertyValuePairDeserializer Class Reference
+ Collaboration diagram for Wikibase\Repo\RestApi\Application\Serialization\PropertyValuePairDeserializer:

Public Member Functions

 __construct (EntityIdParser $entityIdParser, PropertyDataTypeLookup $dataTypeLookup, ValueDeserializer $valueDeserializer)
 
 deserialize (array $serialization)
 

Private Member Functions

 validateSerialization (array $serialization)
 
 parsePropertyId (string $id)
 
 assertFieldExists (array $serialization, string $field)
 
 assertFieldIsArray (array $serializationPart, string $field)
 
 assertFieldIsString (array $serializationPart, string $field)
 

Private Attributes

EntityIdParser $entityIdParser
 
PropertyDataTypeLookup $dataTypeLookup
 
ValueDeserializer $valueDeserializer
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\RestApi\Application\Serialization\PropertyValuePairDeserializer::__construct ( EntityIdParser $entityIdParser,
PropertyDataTypeLookup $dataTypeLookup,
ValueDeserializer $valueDeserializer )

Member Function Documentation

◆ assertFieldExists()

Wikibase\Repo\RestApi\Application\Serialization\PropertyValuePairDeserializer::assertFieldExists ( array $serialization,
string $field )
private

◆ assertFieldIsArray()

Wikibase\Repo\RestApi\Application\Serialization\PropertyValuePairDeserializer::assertFieldIsArray ( array $serializationPart,
string $field )
private

◆ assertFieldIsString()

Wikibase\Repo\RestApi\Application\Serialization\PropertyValuePairDeserializer::assertFieldIsString ( array $serializationPart,
string $field )
private

◆ deserialize()

Wikibase\Repo\RestApi\Application\Serialization\PropertyValuePairDeserializer::deserialize ( array $serialization)
Exceptions
MissingFieldException
InvalidFieldException

◆ parsePropertyId()

Wikibase\Repo\RestApi\Application\Serialization\PropertyValuePairDeserializer::parsePropertyId ( string $id)
private

◆ validateSerialization()

Wikibase\Repo\RestApi\Application\Serialization\PropertyValuePairDeserializer::validateSerialization ( array $serialization)
private

Member Data Documentation

◆ $dataTypeLookup

PropertyDataTypeLookup Wikibase\Repo\RestApi\Application\Serialization\PropertyValuePairDeserializer::$dataTypeLookup
private

◆ $entityIdParser

EntityIdParser Wikibase\Repo\RestApi\Application\Serialization\PropertyValuePairDeserializer::$entityIdParser
private

◆ $valueDeserializer

ValueDeserializer Wikibase\Repo\RestApi\Application\Serialization\PropertyValuePairDeserializer::$valueDeserializer
private

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