@@ 836-856 (lines=21) @@ | ||
833 | * |
|
834 | * @access private |
|
835 | */ |
|
836 | class Text_Diff_Op_delete extends Text_Diff_Op |
|
837 | { |
|
838 | ||
839 | /** |
|
840 | * Text_Diff_Op_delete constructor. |
|
841 | * @param $lines |
|
842 | */ |
|
843 | public function __construct($lines) |
|
844 | { |
|
845 | $this->orig = $lines; |
|
846 | $this->final = false; |
|
847 | } |
|
848 | ||
849 | /** |
|
850 | * @return Text_Diff_Op_add |
|
851 | */ |
|
852 | public function &reverse() |
|
853 | { |
|
854 | return $reverse = new Text_Diff_Op_add($this->orig); |
|
855 | } |
|
856 | } |
|
857 | ||
858 | /** |
|
859 | * @package Text_Diff |
|
@@ 864-884 (lines=21) @@ | ||
861 | * |
|
862 | * @access private |
|
863 | */ |
|
864 | class Text_Diff_Op_add extends Text_Diff_Op |
|
865 | { |
|
866 | ||
867 | /** |
|
868 | * Text_Diff_Op_add constructor. |
|
869 | * @param $lines |
|
870 | */ |
|
871 | public function __construct($lines) |
|
872 | { |
|
873 | $this->final = $lines; |
|
874 | $this->orig = false; |
|
875 | } |
|
876 | ||
877 | /** |
|
878 | * @return Text_Diff_Op_delete |
|
879 | */ |
|
880 | public function &reverse() |
|
881 | { |
|
882 | return $reverse = new Text_Diff_Op_delete($this->final); |
|
883 | } |
|
884 | } |
|
885 | ||
886 | /** |
|
887 | * @package Text_Diff |