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, EntityIdParser $entityIdParser, DataValueDeserializer $dataValueDeserializer, DataTypeValidatorFactory $validatorFactory)
 
 deserialize (string $dataTypeId, array $valueSerialization)
 

Private Member Functions

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

Private Attributes

ValueTypeLookup $valueTypeLookup
 
EntityIdParser $entityIdParser
 
DataValueDeserializer $dataValueDeserializer
 
DataTypeValidatorFactory $validatorFactory
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\RestApi\Infrastructure\DataValuesValueDeserializer::__construct ( ValueTypeLookup $valueTypeLookup,
EntityIdParser $entityIdParser,
DataValueDeserializer $dataValueDeserializer,
DataTypeValidatorFactory $validatorFactory )

Member Function Documentation

◆ assertFieldExists()

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

◆ assertFieldIsArray()

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

◆ assertFieldIsInt()

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

◆ assertFieldIsString()

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

◆ deserialize()

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

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

◆ deserializeEntityIdValue()

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

◆ deserializeTimeValue()

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

Member Data Documentation

◆ $dataValueDeserializer

DataValueDeserializer Wikibase\Repo\RestApi\Infrastructure\DataValuesValueDeserializer::$dataValueDeserializer
private

◆ $entityIdParser

EntityIdParser Wikibase\Repo\RestApi\Infrastructure\DataValuesValueDeserializer::$entityIdParser
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: