@@ 795-808 (lines=14) @@ | ||
792 | * |
|
793 | * @access private |
|
794 | */ |
|
795 | class Text_Diff_Op_delete extends Text_Diff_Op { |
|
796 | ||
797 | function Text_Diff_Op_delete($lines) |
|
798 | { |
|
799 | $this->orig = $lines; |
|
800 | $this->final = false; |
|
801 | } |
|
802 | ||
803 | function &reverse() |
|
804 | { |
|
805 | return $reverse = &new Text_Diff_Op_add($this->orig); |
|
806 | } |
|
807 | ||
808 | } |
|
809 | ||
810 | /** |
|
811 | * @package Text_Diff |
|
@@ 816-829 (lines=14) @@ | ||
813 | * |
|
814 | * @access private |
|
815 | */ |
|
816 | class Text_Diff_Op_add extends Text_Diff_Op { |
|
817 | ||
818 | function __construct($lines) |
|
819 | { |
|
820 | $this->final = $lines; |
|
821 | $this->orig = false; |
|
822 | } |
|
823 | ||
824 | function &reverse() |
|
825 | { |
|
826 | return $reverse = new Text_Diff_Op_delete($this->final); |
|
827 | } |
|
828 | ||
829 | } |
|
830 | ||
831 | /** |
|
832 | * @package Text_Diff |