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

Class ChangeOpLabelResult. More...

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

Public Member Functions

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

Private Attributes

 $languageCode
 
 $newLabel
 
 $oldLabel
 

Detailed Description

Class ChangeOpLabelResult.

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\ChangeOp\ChangeOpLabelResult::__construct (   $entityId,
  $languageCode,
  $oldLabel,
  $newLabel,
  $isEntityChanged = false 
)
Parameters
EntityId | null$entityId
string$languageCode
$oldLabel
$newLabel
bool$isEntityChanged

Member Function Documentation

◆ getLanguageCode()

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

The language code of the entity part that changed.

Returns
string

Implements Wikibase\Repo\ChangeOp\LanguageBoundChangeOpResult.

◆ getNewLabel()

Wikibase\Repo\ChangeOp\ChangeOpLabelResult::getNewLabel ( )

◆ getOldLabel()

Wikibase\Repo\ChangeOp\ChangeOpLabelResult::getOldLabel ( )

Member Data Documentation

◆ $languageCode

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

◆ $newLabel

Wikibase\Repo\ChangeOp\ChangeOpLabelResult::$newLabel
private

◆ $oldLabel

Wikibase\Repo\ChangeOp\ChangeOpLabelResult::$oldLabel
private

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