Class for statement rank change operation.
More...
Class for statement rank change operation.
- Copyright
- GPL-2.0-or-later
- Author
- Tobias Gritschacher < tobia.nosp@m.s.gr.nosp@m.itsch.nosp@m.ache.nosp@m.r@wik.nosp@m.imed.nosp@m.ia.de >
◆ __construct()
Wikibase\Repo\ChangeOp\ChangeOpStatementRank::__construct |
( |
|
$statementGuid, |
|
|
|
$rank |
|
) |
| |
Constructs a new statement rank change operation.
- Parameters
-
string | $statementGuid | |
int | $rank | |
- Exceptions
-
◆ apply()
Wikibase\Repo\ChangeOp\ChangeOpStatementRank::apply |
( |
EntityDocument |
$entity, |
|
|
Summary |
$summary = null |
|
) |
| |
- See also
- ChangeOp::apply()
- Parameters
-
EntityDocument | $entity | |
Summary | null | $summary | |
- Exceptions
-
InvalidArgumentException | |
ChangeOpException | |
Implements Wikibase\Repo\ChangeOp\ChangeOp.
◆ getSnakSummaryArgs()
Wikibase\Repo\ChangeOp\ChangeOpStatementRank::getSnakSummaryArgs |
( |
Snak |
$snak | ) |
|
|
protected |
◆ validate()
Wikibase\Repo\ChangeOp\ChangeOpStatementRank::validate |
( |
EntityDocument |
$entity | ) |
|
◆ $rank
Wikibase\Repo\ChangeOp\ChangeOpStatementRank::$rank |
|
private |
◆ $statementGuid
Wikibase\Repo\ChangeOp\ChangeOpStatementRank::$statementGuid |
|
private |
The documentation for this class was generated from the following file: