| @@ 62-73 (lines=12) @@ | ||
| 59 | * @private |
|
| 60 | * @subpackage DifferenceEngine |
|
| 61 | */ |
|
| 62 | class _DiffOp_Delete extends _DiffOp { |
|
| 63 | var $type = 'delete'; |
|
| 64 | ||
| 65 | function __construct($lines) { |
|
| 66 | $this->orig = $lines; |
|
| 67 | $this->closing = FALSE; |
|
| 68 | } |
|
| 69 | ||
| 70 | function reverse() { |
|
| 71 | return new _DiffOp_Add($this->orig); |
|
| 72 | } |
|
| 73 | } |
|
| 74 | ||
| 75 | /** |
|
| 76 | * @todo document |
|
| @@ 80-91 (lines=12) @@ | ||
| 77 | * @private |
|
| 78 | * @subpackage DifferenceEngine |
|
| 79 | */ |
|
| 80 | class _DiffOp_Add extends _DiffOp { |
|
| 81 | var $type = 'add'; |
|
| 82 | ||
| 83 | function __construct($lines) { |
|
| 84 | $this->closing = $lines; |
|
| 85 | $this->orig = FALSE; |
|
| 86 | } |
|
| 87 | ||
| 88 | function reverse() { |
|
| 89 | return new _DiffOp_Delete($this->closing); |
|
| 90 | } |
|
| 91 | } |
|
| 92 | ||
| 93 | /** |
|
| 94 | * @todo document |
|