| 1 | <?php |
||
| 6 | abstract class Operation |
||
| 7 | { |
||
| 8 | |||
| 9 | const OP_TEST = 'test'; |
||
| 10 | const OP_ADD = 'add'; |
||
| 11 | const OP_REMOVE = 'remove'; |
||
| 12 | const OP_REPLACE = 'replace'; |
||
| 13 | const OP_MOVE = 'move'; |
||
| 14 | const OP_COPY = 'copy'; |
||
| 15 | |||
| 16 | protected $path = ''; |
||
| 17 | |||
| 18 | public static function fromDecodedJSON($operationContent) |
||
| 26 | |||
| 27 | public function getPath(): string |
||
| 31 | |||
| 32 | private static function assertValidOperationContent($operationContent) |
||
| 44 | |||
| 45 | private static function assertKnownOperation($operation) |
||
| 60 | } |
||
| 61 |