Copy.php 699 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. /**
  3. * Copyright 2007-2012 Horde LLC (http://www.horde.org/)
  4. *
  5. * See the enclosed file COPYING for license information (LGPL). If you did
  6. * not receive this file, see http://www.horde.org/licenses/lgpl21.
  7. *
  8. * @package Text_Diff
  9. * @author Geoffrey T. Dairiki <dairiki@dairiki.org>
  10. */
  11. class Horde_Text_Diff_ThreeWay_Op_Copy extends Horde_Text_Diff_ThreeWay_Op_Base
  12. {
  13. public function __construct($lines = false)
  14. {
  15. $this->orig = $lines ? $lines : [];
  16. $this->final1 = &$this->orig;
  17. $this->final2 = &$this->orig;
  18. }
  19. public function merged()
  20. {
  21. return $this->orig;
  22. }
  23. public function isConflict()
  24. {
  25. return false;
  26. }
  27. }