xref: /web-bugs/src/Horde/Text/Diff/ThreeWay/Op/Copy.php (revision e3c4b0ac)
1<?php
2/**
3 * Copyright 2007-2017 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 */
11class 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 : array();
16        $this->final1 = &$this->orig;
17        $this->final2 = &$this->orig;
18    }
19
20    public function merged()
21    {
22        return $this->orig;
23    }
24
25    public function isConflict()
26    {
27        return false;
28    }
29}
30