Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Repo\ChangeOp\Deserialization\ClaimsChangeOpDeserializer Class Reference

Constructs ChangeOps for statement change requests (referred to as "claims" for legacy reasons). More...

+ Inheritance diagram for Wikibase\Repo\ChangeOp\Deserialization\ClaimsChangeOpDeserializer:
+ Collaboration diagram for Wikibase\Repo\ChangeOp\Deserialization\ClaimsChangeOpDeserializer:

Public Member Functions

 __construct (Deserializer $statementDeserializer, StatementChangeOpFactory $statementChangeOpFactory)
 
 createEntityChangeOp (array $changeRequest)
 

Private Member Functions

 createStatementChangeOps (array $serializations)
 
 createStatementChangeOp ( $serialization)
 
 createRemoveStatementChangeOp (array $serialization)
 
 assertIsArray ( $claims)
 

Private Attributes

 $statementDeserializer
 
 $statementChangeOpFactory
 

Detailed Description

Constructs ChangeOps for statement change requests (referred to as "claims" for legacy reasons).

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\ChangeOp\Deserialization\ClaimsChangeOpDeserializer::__construct ( Deserializer $statementDeserializer,
StatementChangeOpFactory $statementChangeOpFactory )

Member Function Documentation

◆ assertIsArray()

Wikibase\Repo\ChangeOp\Deserialization\ClaimsChangeOpDeserializer::assertIsArray ( $claims)
private
Parameters
array$claims
Exceptions
ChangeOpDeserializationException

◆ createEntityChangeOp()

Wikibase\Repo\ChangeOp\Deserialization\ClaimsChangeOpDeserializer::createEntityChangeOp ( array $changeRequest)
See also
ChangeOpDeserializer::createEntityChangeOp
Parameters
array[]$changeRequest
Returns
ChangeOp
Exceptions
ChangeOpDeserializationException

Implements Wikibase\Repo\ChangeOp\ChangeOpDeserializer.

◆ createRemoveStatementChangeOp()

Wikibase\Repo\ChangeOp\Deserialization\ClaimsChangeOpDeserializer::createRemoveStatementChangeOp ( array $serialization)
private
Parameters
array$serializationA serialized statement.
Returns
ChangeOp
Exceptions
ChangeOpDeserializationException

◆ createStatementChangeOp()

Wikibase\Repo\ChangeOp\Deserialization\ClaimsChangeOpDeserializer::createStatementChangeOp ( $serialization)
private
Parameters
array$serializationA serialized statement.
Returns
ChangeOp
Exceptions
ChangeOpDeserializationException

◆ createStatementChangeOps()

Wikibase\Repo\ChangeOp\Deserialization\ClaimsChangeOpDeserializer::createStatementChangeOps ( array $serializations)
private
Parameters
array[]$serializationsArray of serialized statements.
Returns
ChangeOp[]
Exceptions
ChangeOpDeserializationException

Member Data Documentation

◆ $statementChangeOpFactory

Wikibase\Repo\ChangeOp\Deserialization\ClaimsChangeOpDeserializer::$statementChangeOpFactory
private

◆ $statementDeserializer

Wikibase\Repo\ChangeOp\Deserialization\ClaimsChangeOpDeserializer::$statementDeserializer
private

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