MediaWiki Wikibase extension
Wikibase\Repo\RestApi\Domain\Services\JsonPatcher Interface Reference
+ Inheritance diagram for Wikibase\Repo\RestApi\Domain\Services\JsonPatcher:

Public Member Functions

 patch (array $target, array $patch)

Detailed Description

Member Function Documentation

◆ patch()

Wikibase\Repo\RestApi\Domain\Services\JsonPatcher::patch ( array  $target,
array  $patch 
InvalidArgumentExceptionfor an invalid patch
PatchPathExceptionif a path target provided in the patch does not exist
PatchTestConditionFailedExceptionif a "test" op in the patch fails

Implemented in Wikibase\Repo\RestApi\Infrastructure\JsonDiffJsonPatcher.

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