| 1 | <?php |
||
| 10 | class Replace extends Operation implements Atomic |
||
| 11 | { |
||
| 12 | private $value; |
||
| 13 | private $previousValue; |
||
| 14 | |||
| 15 | public function __construct(string $path, $value) |
||
| 20 | |||
| 21 | public function apply(Pointer $target) |
||
| 31 | |||
| 32 | public function revert(Pointer $target) |
||
| 36 | |||
| 37 | public static function fromDecodedJSON($operationContent): self |
||
| 43 | |||
| 44 | private static function assertValidOperationContent($operationContent) |
||
| 50 | |||
| 51 | public function __toString(): string |
||
| 59 | } |
||
| 60 |