Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Repo\RestApi\Infrastructure\JsonDiffJsonPatcher Class Reference
+ Inheritance diagram for Wikibase\Repo\RestApi\Infrastructure\JsonDiffJsonPatcher:
+ Collaboration diagram for Wikibase\Repo\RestApi\Infrastructure\JsonDiffJsonPatcher:

Public Member Functions

 patch (array $target, array $patch)
 
Returns
mixed usually this will be an array, but the type may change if the whole root element is modified by the client
Exceptions
InvalidArgumentExceptionfor an invalid patch
PatchPathExceptionif a path target provided in the patch does not exist
PatchTestConditionFailedExceptionif a "test" op in the patch fails

 

Detailed Description

Member Function Documentation

◆ patch()

Wikibase\Repo\RestApi\Infrastructure\JsonDiffJsonPatcher::patch ( array $target,
array $patch )

Returns
mixed usually this will be an array, but the type may change if the whole root element is modified by the client
Exceptions
InvalidArgumentExceptionfor an invalid patch
PatchPathExceptionif a path target provided in the patch does not exist
PatchTestConditionFailedExceptionif a "test" op in the patch fails

Implements Wikibase\Repo\RestApi\Domain\Services\JsonPatcher.


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