Wikibase
MediaWiki Wikibase extension
Wikibase\Repo\ChangeOp\EntityChangeOpProvider Class Reference

Turns entity change request into ChangeOp objects based on change request deserialization configured for the particular entity type. More...

Public Member Functions

 __construct (array $changeOpDeserializerInstantiators)
 
 newEntityChangeOp ( $entityType, array $changeRequest)
 

Private Member Functions

 getDeserializerForEntityType ( $type)
 
 newDeserializerForEntityType ( $type)
 

Private Attributes

 $changeOpDeserializerInstantiators
 
 $changeOpDeserializers = []
 

Detailed Description

Turns entity change request into ChangeOp objects based on change request deserialization configured for the particular entity type.

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\ChangeOp\EntityChangeOpProvider::__construct ( array  $changeOpDeserializerInstantiators)
Parameters
callable[]$changeOpDeserializerInstantiatorsAssociative array mapping entity types (strings) to callbacks instantiating ChangeOpDeserializer objects.

Member Function Documentation

◆ getDeserializerForEntityType()

Wikibase\Repo\ChangeOp\EntityChangeOpProvider::getDeserializerForEntityType (   $type)
private
Parameters
string$type
Exceptions
ChangeOpDeserializationException
Returns
ChangeOpDeserializer

◆ newDeserializerForEntityType()

Wikibase\Repo\ChangeOp\EntityChangeOpProvider::newDeserializerForEntityType (   $type)
private
Parameters
string$type
Exceptions
ChangeOpDeserializationException
Returns
ChangeOpDeserializer

◆ newEntityChangeOp()

Wikibase\Repo\ChangeOp\EntityChangeOpProvider::newEntityChangeOp (   $entityType,
array  $changeRequest 
)
Parameters
string$entityType
array$changeRequestData of change to apply,
See also
md_docs_topics_changeop-serializations for format specification
Exceptions
ChangeOpDeserializationException
Returns
ChangeOp

Member Data Documentation

◆ $changeOpDeserializerInstantiators

Wikibase\Repo\ChangeOp\EntityChangeOpProvider::$changeOpDeserializerInstantiators
private

◆ $changeOpDeserializers

Wikibase\Repo\ChangeOp\EntityChangeOpProvider::$changeOpDeserializers = []
private

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