Patcher
in package
Table of Contents
Properties
- $opHandlers : mixed
Methods
- addOpHandler() : void
- Add operation handler
- applyPatch() : array<string|int, mixed>
- Apply patch
- handleOp() : array<string|int, mixed>
- Apply operation
Properties
$opHandlers
private
mixed
$opHandlers
= []
Methods
addOpHandler()
Add operation handler
public
addOpHandler(OpHandlerInterface $opHandler) : void
Parameters
- $opHandler : OpHandlerInterface
applyPatch()
Apply patch
public
applyPatch(mixed $patch[, mixed $context = [] ]) : array<string|int, mixed>
Parameters
- $patch : mixed
- $context : mixed = []
Tags
Return values
array<string|int, mixed>handleOp()
Apply operation
public
handleOp(OpInterface $op) : array<string|int, mixed>
Parameters
- $op : OpInterface