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

Class ChangeOpDescriptionResult. More...

+ Inheritance diagram for Wikibase\Repo\ChangeOp\ChangeOpDescriptionResult:
+ Collaboration diagram for Wikibase\Repo\ChangeOp\ChangeOpDescriptionResult:

Public Member Functions

 __construct (?EntityId $entityId, string $languageCode, ?string $oldDescription, ?string $newDescription, bool $isEntityChanged=false)
 
 getLanguageCode ()
 The language code of the entity part that changed. More...
 
 getNewDescription ()
 
 getOldDescription ()
 
- Public Member Functions inherited from Wikibase\Repo\ChangeOp\GenericChangeOpResult
 __construct (?EntityId $entityId, bool $isEntityChanged)
 
 getEntityId ()
 The id of the entity document that the change op was applied to. More...
 
 isEntityChanged ()
 Whether the entity document was actually changed in any way as a result of applying the change op to it. More...
 
 validate ()
 Validate a ChangeOpResult. More...
 

Private Attributes

 $languageCode
 
 $oldDescription
 
 $newDescription
 

Detailed Description

Class ChangeOpDescriptionResult.

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\ChangeOp\ChangeOpDescriptionResult::__construct ( ?EntityId  $entityId,
string  $languageCode,
?string  $oldDescription,
?string  $newDescription,
bool  $isEntityChanged = false 
)

Member Function Documentation

◆ getLanguageCode()

Wikibase\Repo\ChangeOp\ChangeOpDescriptionResult::getLanguageCode ( )

The language code of the entity part that changed.

Returns
string

Implements Wikibase\Repo\ChangeOp\LanguageBoundChangeOpResult.

◆ getNewDescription()

Wikibase\Repo\ChangeOp\ChangeOpDescriptionResult::getNewDescription ( )

◆ getOldDescription()

Wikibase\Repo\ChangeOp\ChangeOpDescriptionResult::getOldDescription ( )

Member Data Documentation

◆ $languageCode

Wikibase\Repo\ChangeOp\ChangeOpDescriptionResult::$languageCode
private

◆ $newDescription

Wikibase\Repo\ChangeOp\ChangeOpDescriptionResult::$newDescription
private

◆ $oldDescription

Wikibase\Repo\ChangeOp\ChangeOpDescriptionResult::$oldDescription
private

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