eb08103879fc8a1966ba7e4f47878b16951ece72
[yaffs-website] / vendor / sebastian / diff / src / Chunk.php
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 Chunk
16 {
17     /**
18      * @var int
19      */
20     private $start;
21
22     /**
23      * @var int
24      */
25     private $startRange;
26
27     /**
28      * @var int
29      */
30     private $end;
31     /**
32      * @var int
33      */
34     private $endRange;
35
36     /**
37      * @var array
38      */
39     private $lines;
40
41     /**
42      * @param int   $start
43      * @param int   $startRange
44      * @param int   $end
45      * @param int   $endRange
46      * @param array $lines
47      */
48     public function __construct($start = 0, $startRange = 1, $end = 0, $endRange = 1, array $lines = array())
49     {
50         $this->start      = (int) $start;
51         $this->startRange = (int) $startRange;
52         $this->end        = (int) $end;
53         $this->endRange   = (int) $endRange;
54         $this->lines      = $lines;
55     }
56
57     /**
58      * @return int
59      */
60     public function getStart()
61     {
62         return $this->start;
63     }
64
65     /**
66      * @return int
67      */
68     public function getStartRange()
69     {
70         return $this->startRange;
71     }
72
73     /**
74      * @return int
75      */
76     public function getEnd()
77     {
78         return $this->end;
79     }
80
81     /**
82      * @return int
83      */
84     public function getEndRange()
85     {
86         return $this->endRange;
87     }
88
89     /**
90      * @return array
91      */
92     public function getLines()
93     {
94         return $this->lines;
95     }
96
97     /**
98      * @param array $lines
99      */
100     public function setLines(array $lines)
101     {
102         $this->lines = $lines;
103     }
104 }