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

Class for statement remove operation. More...

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

Public Member Functions

 getGuid ()
 
 __construct ( $guid)
 Constructs a new mainsnak change operation. More...
 
 apply (EntityDocument $entity, Summary $summary=null)
 
 validate (EntityDocument $entity)
 
- Public Member Functions inherited from Wikibase\Repo\ChangeOp\ChangeOpBase
 getActions ()
 

Private Member Functions

 getSummaryArgs (Snak $mainSnak)
 

Private Attributes

 $guid
 

Additional Inherited Members

- Protected Member Functions inherited from Wikibase\Repo\ChangeOp\ChangeOpBase
 updateSummary (?Summary $summary, $action, $language='', $args='')
 

Detailed Description

Class for statement remove operation.

Author
Addshore
Thiemo Kreuz

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\ChangeOp\ChangeOpRemoveStatement::__construct (   $guid)

Constructs a new mainsnak change operation.

Parameters
string$guid
Exceptions
InvalidArgumentException

Member Function Documentation

◆ apply()

Wikibase\Repo\ChangeOp\ChangeOpRemoveStatement::apply ( EntityDocument  $entity,
Summary  $summary = null 
)
See also
ChangeOp::apply
Parameters
EntityDocument$entity
Summary | null$summary
Exceptions
InvalidArgumentException
ChangeOpException

Implements Wikibase\Repo\ChangeOp\ChangeOp.

◆ getGuid()

Wikibase\Repo\ChangeOp\ChangeOpRemoveStatement::getGuid ( )
Returns
string

◆ getSummaryArgs()

Wikibase\Repo\ChangeOp\ChangeOpRemoveStatement::getSummaryArgs ( Snak  $mainSnak)
private
Parameters
Snak$mainSnak
Returns
array

◆ validate()

Wikibase\Repo\ChangeOp\ChangeOpRemoveStatement::validate ( EntityDocument  $entity)
See also
ChangeOp::validate
Parameters
EntityDocument$entity
Returns
Result Always successful.

Implements Wikibase\Repo\ChangeOp\ChangeOp.

Member Data Documentation

◆ $guid

Wikibase\Repo\ChangeOp\ChangeOpRemoveStatement::$guid
private

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