1 | <?php |
||
9 | class DiffRowPosition |
||
10 | { |
||
11 | /** |
||
12 | * @var int |
||
13 | */ |
||
14 | protected $indexInOld; |
||
15 | |||
16 | /** |
||
17 | * @var int |
||
18 | */ |
||
19 | protected $indexInNew; |
||
20 | |||
21 | /** |
||
22 | * @var int |
||
23 | */ |
||
24 | protected $columnInOld; |
||
25 | |||
26 | /** |
||
27 | * @var int |
||
28 | */ |
||
29 | protected $columnInNew; |
||
30 | |||
31 | /** |
||
32 | * DiffRowPosition constructor. |
||
33 | * |
||
34 | * @param int $indexInOld |
||
35 | * @param int $indexInNew |
||
36 | * @param int $columnInOld |
||
37 | * @param int $columnInNew |
||
38 | */ |
||
39 | public function __construct($indexInOld = 0, $indexInNew = 0, $columnInOld = 0, $columnInNew = 0) |
||
46 | |||
47 | /** |
||
48 | * @return int |
||
49 | */ |
||
50 | public function getIndexInOld() |
||
54 | |||
55 | /** |
||
56 | * @param int $indexInOld |
||
57 | * |
||
58 | * @return DiffRowPosition |
||
59 | */ |
||
60 | public function setIndexInOld($indexInOld) |
||
66 | |||
67 | /** |
||
68 | * @return int |
||
69 | */ |
||
70 | public function getIndexInNew() |
||
74 | |||
75 | /** |
||
76 | * @param int $indexInNew |
||
77 | * |
||
78 | * @return DiffRowPosition |
||
79 | */ |
||
80 | public function setIndexInNew($indexInNew) |
||
86 | |||
87 | /** |
||
88 | * @return int |
||
89 | */ |
||
90 | public function getColumnInOld() |
||
94 | |||
95 | /** |
||
96 | * @param int $columnInOld |
||
97 | * |
||
98 | * @return DiffRowPosition |
||
99 | */ |
||
100 | public function setColumnInOld($columnInOld) |
||
106 | |||
107 | /** |
||
108 | * @return int |
||
109 | */ |
||
110 | public function getColumnInNew() |
||
114 | |||
115 | /** |
||
116 | * @param int $columnInNew |
||
117 | * |
||
118 | * @return DiffRowPosition |
||
119 | */ |
||
120 | public function setColumnInNew($columnInNew) |
||
126 | |||
127 | /** |
||
128 | * @param int $increment |
||
129 | * |
||
130 | * @return int |
||
131 | */ |
||
132 | public function incrementColumnInNew($increment = 1) |
||
138 | |||
139 | /** |
||
140 | * @param int $increment |
||
141 | * |
||
142 | * @return int |
||
143 | */ |
||
144 | public function incrementColumnInOld($increment = 1) |
||
150 | |||
151 | /** |
||
152 | * @param int $increment |
||
153 | * |
||
154 | * @return int |
||
155 | */ |
||
156 | public function incrementIndexInNew($increment = 1) |
||
162 | |||
163 | /** |
||
164 | * @param int $increment |
||
165 | * |
||
166 | * @return int |
||
167 | */ |
||
168 | public function incrementIndexInOld($increment = 1) |
||
174 | |||
175 | /** |
||
176 | * @param string $type |
||
177 | * @param int $increment |
||
178 | * |
||
179 | * @return int |
||
180 | */ |
||
181 | public function incrementIndex($type, $increment = 1) |
||
189 | |||
190 | /** |
||
191 | * @param string $type |
||
192 | * @param int $increment |
||
193 | * |
||
194 | * @return int |
||
195 | */ |
||
196 | public function incrementColumn($type, $increment = 1) |
||
204 | |||
205 | /** |
||
206 | * @param string $type |
||
207 | * |
||
208 | * @return bool |
||
209 | */ |
||
210 | public function isColumnLessThanOther($type) |
||
218 | |||
219 | /** |
||
220 | * @param string $type |
||
221 | * |
||
222 | * @return int |
||
223 | */ |
||
224 | public function getColumn($type) |
||
232 | |||
233 | /** |
||
234 | * @param string $type |
||
235 | * |
||
236 | * @return int |
||
237 | */ |
||
238 | public function getIndex($type) |
||
246 | |||
247 | /** |
||
248 | * @return bool |
||
249 | */ |
||
250 | public function areColumnsEqual() |
||
254 | |||
255 | /** |
||
256 | * @return null|string |
||
257 | */ |
||
258 | public function getLesserColumnType() |
||
268 | } |