Class for qualifier change operation.
More...
Class for qualifier 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 >
-
Daniel Kinzler
◆ __construct()
Wikibase\Repo\ChangeOp\ChangeOpQualifier::__construct |
( |
|
$statementGuid, |
|
|
Snak |
$snak, |
|
|
|
$snakHash, |
|
|
SnakValidator |
$snakValidator |
|
) |
| |
Constructs a new qualifier change operation.
- Parameters
-
string | $statementGuid | |
Snak | $snak | |
string | $snakHash | |
SnakValidator | $snakValidator | |
- Exceptions
-
◆ addQualifier()
Wikibase\Repo\ChangeOp\ChangeOpQualifier::addQualifier |
( |
SnakList |
$qualifiers, |
|
|
Summary |
$summary = null |
|
) |
| |
|
protected |
- Parameters
-
SnakList | $qualifiers | |
Summary | null | $summary | |
- Exceptions
-
◆ apply()
Wikibase\Repo\ChangeOp\ChangeOpQualifier::apply |
( |
EntityDocument |
$entity, |
|
|
Summary |
$summary = null |
|
) |
| |
- See also
- ChangeOp::apply()
- a new qualifier gets added when $snakHash is empty and $snak is set
- the qualifier gets set to $snak when $snakHash and $snak are set
- Parameters
-
EntityDocument | $entity | |
Summary | null | $summary | |
- Exceptions
-
InvalidArgumentException | |
ChangeOpException | |
Implements Wikibase\Repo\ChangeOp\ChangeOp.
◆ getSnakSummaryArgs()
Wikibase\Repo\ChangeOp\ChangeOpQualifier::getSnakSummaryArgs |
( |
Snak |
$snak | ) |
|
|
protected |
◆ setQualifier()
Wikibase\Repo\ChangeOp\ChangeOpQualifier::setQualifier |
( |
SnakList |
$qualifiers, |
|
|
Summary |
$summary = null |
|
) |
| |
|
protected |
- Parameters
-
SnakList | $qualifiers | |
Summary | null | $summary | |
- Exceptions
-
◆ validate()
Wikibase\Repo\ChangeOp\ChangeOpQualifier::validate |
( |
EntityDocument |
$entity | ) |
|
◆ $snak
Wikibase\Repo\ChangeOp\ChangeOpQualifier::$snak |
|
private |
◆ $snakHash
Wikibase\Repo\ChangeOp\ChangeOpQualifier::$snakHash |
|
private |
◆ $snakValidator
Wikibase\Repo\ChangeOp\ChangeOpQualifier::$snakValidator |
|
private |
◆ $statementGuid
Wikibase\Repo\ChangeOp\ChangeOpQualifier::$statementGuid |
|
private |
The documentation for this class was generated from the following file: