- Copyright
- GPL-2.0-or-later
◆ apply()
Applies the change represented by this ChangeOp to the given Entity.As ChangeOp
does not yet know whether it is going to change the entity or not, and since expensive validations should be run only on ChangeOp
s that will change the entity, ChangeOpResult::validate
is recommended for such validations.
- Parameters
-
EntityDocument | $entity | |
Summary | null | $summary | |
- Exceptions
-
InvalidArgumentException | when called with an unexpected entity type. |
ChangeOpException | when the change can not be applied to the entity, e.g. because the same data was edited in the meantime. |
- Returns
- ChangeOpResult
Implements Wikibase\Repo\ChangeOp\ChangeOp.
◆ getActions()
Wikibase\Repo\ChangeOp\NullChangeOp::getActions |
( |
| ) |
|
◆ validate()
Wikibase\Repo\ChangeOp\NullChangeOp::validate |
( |
EntityDocument | $entity | ) |
|
The documentation for this class was generated from the following file: