Yaffs site version 1.1
[yaffs-website] / vendor / sebastian / diff / src / Line.php
1 <?php
2 /*
3  * This file is part of sebastian/diff.
4  *
5  * (c) Sebastian Bergmann <sebastian@phpunit.de>
6  *
7  * For the full copyright and license information, please view the LICENSE
8  * file that was distributed with this source code.
9  */
10
11 namespace SebastianBergmann\Diff;
12
13 class Line
14 {
15     const ADDED     = 1;
16     const REMOVED   = 2;
17     const UNCHANGED = 3;
18
19     /**
20      * @var int
21      */
22     private $type;
23
24     /**
25      * @var string
26      */
27     private $content;
28
29     /**
30      * @param int    $type
31      * @param string $content
32      */
33     public function __construct($type = self::UNCHANGED, $content = '')
34     {
35         $this->type    = $type;
36         $this->content = $content;
37     }
38
39     /**
40      * @return string
41      */
42     public function getContent()
43     {
44         return $this->content;
45     }
46
47     /**
48      * @return int
49      */
50     public function getType()
51     {
52         return $this->type;
53     }
54 }