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, string $basePath='')
 

Private Member Functions

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

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,
string $basePath )
private

◆ assertFieldIsAssociativeArray()

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

◆ assertFieldIsString()

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

◆ deserialize()

Wikibase\Repo\RestApi\Application\Serialization\PropertyValuePairDeserializer::deserialize ( array $serialization,
string $basePath = '' )
Exceptions
MissingFieldException
InvalidFieldException
PropertyNotFoundException

◆ parsePropertyId()

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

◆ validateSerialization()

Wikibase\Repo\RestApi\Application\Serialization\PropertyValuePairDeserializer::validateSerialization ( array $serialization,
string $basePath )
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: