Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Repo\RestApi\Infrastructure\DataValuesValueDeserializer Class Reference
+ Inheritance diagram for Wikibase\Repo\RestApi\Infrastructure\DataValuesValueDeserializer:
+ Collaboration diagram for Wikibase\Repo\RestApi\Infrastructure\DataValuesValueDeserializer:

Public Member Functions

 __construct (ValueTypeLookup $valueTypeLookup, SnakValueDeserializer $snakValueDeserializer, DataTypeValidatorFactory $validatorFactory)
 
 deserialize (string $dataTypeId, array $valueSerialization, string $basePath='')
 

Private Member Functions

 deserializeEntityIdValue (string $dataTypeId, string $content, string $basePath)
 
 deserializeTimeValue (array $content, string $basePath)
 
 assertFieldExists (array $serialization, string $field, string $basePath)
 
 assertFieldIsArray (array $serialization, string $field, string $basePath)
 
 assertFieldIsString (array $serialization, string $field, string $basePath)
 
 assertFieldIsInt (array $serialization, string $field, string $basePath)
 

Private Attributes

ValueTypeLookup $valueTypeLookup
 
SnakValueDeserializer $snakValueDeserializer
 
DataTypeValidatorFactory $validatorFactory
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\RestApi\Infrastructure\DataValuesValueDeserializer::__construct ( ValueTypeLookup $valueTypeLookup,
SnakValueDeserializer $snakValueDeserializer,
DataTypeValidatorFactory $validatorFactory )

Member Function Documentation

◆ assertFieldExists()

Wikibase\Repo\RestApi\Infrastructure\DataValuesValueDeserializer::assertFieldExists ( array $serialization,
string $field,
string $basePath )
private

◆ assertFieldIsArray()

Wikibase\Repo\RestApi\Infrastructure\DataValuesValueDeserializer::assertFieldIsArray ( array $serialization,
string $field,
string $basePath )
private

◆ assertFieldIsInt()

Wikibase\Repo\RestApi\Infrastructure\DataValuesValueDeserializer::assertFieldIsInt ( array $serialization,
string $field,
string $basePath )
private

◆ assertFieldIsString()

Wikibase\Repo\RestApi\Infrastructure\DataValuesValueDeserializer::assertFieldIsString ( array $serialization,
string $field,
string $basePath )
private

◆ deserialize()

Wikibase\Repo\RestApi\Infrastructure\DataValuesValueDeserializer::deserialize ( string $dataTypeId,
array $valueSerialization,
string $basePath = '' )
Exceptions
MissingFieldException
InvalidFieldException

Implements Wikibase\Repo\RestApi\Application\Serialization\ValueDeserializer.

◆ deserializeEntityIdValue()

Wikibase\Repo\RestApi\Infrastructure\DataValuesValueDeserializer::deserializeEntityIdValue ( string $dataTypeId,
string $content,
string $basePath )
private

◆ deserializeTimeValue()

Wikibase\Repo\RestApi\Infrastructure\DataValuesValueDeserializer::deserializeTimeValue ( array $content,
string $basePath )
private

Member Data Documentation

◆ $snakValueDeserializer

SnakValueDeserializer Wikibase\Repo\RestApi\Infrastructure\DataValuesValueDeserializer::$snakValueDeserializer
private

◆ $validatorFactory

DataTypeValidatorFactory Wikibase\Repo\RestApi\Infrastructure\DataValuesValueDeserializer::$validatorFactory
private

◆ $valueTypeLookup

ValueTypeLookup Wikibase\Repo\RestApi\Infrastructure\DataValuesValueDeserializer::$valueTypeLookup
private

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