Mercurial > hg > isophonics-drupal-site
comparison vendor/sebastian/diff/src/Line.php @ 0:4c8ae668cc8c
Initial import (non-working)
author | Chris Cannam |
---|---|
date | Wed, 29 Nov 2017 16:09:58 +0000 |
parents | |
children | 7a779792577d |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:4c8ae668cc8c |
---|---|
1 <?php | |
2 /* | |
3 * This file is part of the Diff package. | |
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 /** | |
14 */ | |
15 class Line | |
16 { | |
17 const ADDED = 1; | |
18 const REMOVED = 2; | |
19 const UNCHANGED = 3; | |
20 | |
21 /** | |
22 * @var int | |
23 */ | |
24 private $type; | |
25 | |
26 /** | |
27 * @var string | |
28 */ | |
29 private $content; | |
30 | |
31 /** | |
32 * @param int $type | |
33 * @param string $content | |
34 */ | |
35 public function __construct($type = self::UNCHANGED, $content = '') | |
36 { | |
37 $this->type = $type; | |
38 $this->content = $content; | |
39 } | |
40 | |
41 /** | |
42 * @return string | |
43 */ | |
44 public function getContent() | |
45 { | |
46 return $this->content; | |
47 } | |
48 | |
49 /** | |
50 * @return int | |
51 */ | |
52 public function getType() | |
53 { | |
54 return $this->type; | |
55 } | |
56 } |