Class for mainsnak change operation.
More...
◆ __construct()
Wikibase\Repo\ChangeOp\ChangeOpMainSnak::__construct |
( |
|
$statementGuid, |
|
|
Snak |
$snak, |
|
|
GuidGenerator |
$guidGenerator, |
|
|
SnakValidator |
$snakValidator |
|
) |
| |
Constructs a new mainsnak change operation.
- Parameters
-
string | $statementGuid | |
Snak | $snak | |
GuidGenerator | $guidGenerator | |
SnakValidator | $snakValidator | |
- Exceptions
-
◆ addStatement()
Wikibase\Repo\ChangeOp\ChangeOpMainSnak::addStatement |
( |
StatementList |
$statements, |
|
|
EntityId |
$entityId, |
|
|
Summary |
$summary = null |
|
) |
| |
|
private |
- Parameters
-
StatementList | $statements | |
EntityId | $entityId | |
Summary | null | $summary | |
◆ apply()
Wikibase\Repo\ChangeOp\ChangeOpMainSnak::apply |
( |
EntityDocument |
$entity, |
|
|
Summary |
$summary = null |
|
) |
| |
◆ getClaimSummaryArgs()
Wikibase\Repo\ChangeOp\ChangeOpMainSnak::getClaimSummaryArgs |
( |
Snak |
$mainSnak | ) |
|
|
protected |
◆ getStatementGuid()
Wikibase\Repo\ChangeOp\ChangeOpMainSnak::getStatementGuid |
( |
| ) |
|
◆ setStatement()
Wikibase\Repo\ChangeOp\ChangeOpMainSnak::setStatement |
( |
StatementList |
$statements, |
|
|
Summary |
$summary = null |
|
) |
| |
|
private |
- Parameters
-
StatementList | $statements | |
Summary | null | $summary | |
- Exceptions
-
◆ validate()
Wikibase\Repo\ChangeOp\ChangeOpMainSnak::validate |
( |
EntityDocument |
$entity | ) |
|
◆ $guidGenerator
Wikibase\Repo\ChangeOp\ChangeOpMainSnak::$guidGenerator |
|
private |
◆ $snak
Wikibase\Repo\ChangeOp\ChangeOpMainSnak::$snak |
|
private |
◆ $snakValidator
Wikibase\Repo\ChangeOp\ChangeOpMainSnak::$snakValidator |
|
private |
◆ $statementGuid
Wikibase\Repo\ChangeOp\ChangeOpMainSnak::$statementGuid |
|
private |
The documentation for this class was generated from the following file: