comparison vendor/sebastian/diff/src/Line.php @ 14:1fec387a4317

Update Drupal core to 8.5.2 via Composer
author Chris Cannam
date Mon, 23 Apr 2018 09:46:53 +0100
parents 7a779792577d
children
comparison
equal deleted inserted replaced
13:5fb285c0d0e3 14:1fec387a4317
1 <?php 1 <?php declare(strict_types=1);
2 /* 2 /*
3 * This file is part of sebastian/diff. 3 * This file is part of sebastian/diff.
4 * 4 *
5 * (c) Sebastian Bergmann <sebastian@phpunit.de> 5 * (c) Sebastian Bergmann <sebastian@phpunit.de>
6 * 6 *
8 * file that was distributed with this source code. 8 * file that was distributed with this source code.
9 */ 9 */
10 10
11 namespace SebastianBergmann\Diff; 11 namespace SebastianBergmann\Diff;
12 12
13 class Line 13 final class Line
14 { 14 {
15 const ADDED = 1; 15 const ADDED = 1;
16 const REMOVED = 2; 16 const REMOVED = 2;
17 const UNCHANGED = 3; 17 const UNCHANGED = 3;
18 18
24 /** 24 /**
25 * @var string 25 * @var string
26 */ 26 */
27 private $content; 27 private $content;
28 28
29 /** 29 public function __construct(int $type = self::UNCHANGED, string $content = '')
30 * @param int $type
31 * @param string $content
32 */
33 public function __construct($type = self::UNCHANGED, $content = '')
34 { 30 {
35 $this->type = $type; 31 $this->type = $type;
36 $this->content = $content; 32 $this->content = $content;
37 } 33 }
38 34
39 /** 35 public function getContent(): string
40 * @return string
41 */
42 public function getContent()
43 { 36 {
44 return $this->content; 37 return $this->content;
45 } 38 }
46 39
47 /** 40 public function getType(): int
48 * @return int
49 */
50 public function getType()
51 { 41 {
52 return $this->type; 42 return $this->type;
53 } 43 }
54 } 44 }