Cancelled
Push — master ( 5c013f...948458 )
by Josh
322:57 queued 322:57
created

RowMatch::getEndInOld()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
ccs 0
cts 2
cp 0
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 2
1
<?php
2
3
namespace Caxy\HtmlDiff\Table;
4
5
/**
6
 * Class RowMatch
7
 * @package Caxy\HtmlDiff\Table
8
 */
9
class RowMatch
10
{
11
    /**
12
     * @var int
13
     */
14
    protected $startInNew;
15
16
    /**
17
     * @var int
18
     */
19
    protected $startInOld;
20
21
    /**
22
     * @var int
23
     */
24
    protected $endInNew;
25
26
    /**
27
     * @var int
28
     */
29
    protected $endInOld;
30
31
    /**
32
     * @var float|null
33
     */
34
    protected $percentage;
35
36
    /**
37
     * RowMatch constructor.
38
     *
39
     * @param int        $startInNew
40
     * @param int        $startInOld
41
     * @param int        $endInNew
42
     * @param int        $endInOld
43
     * @param float|null $percentage
44
     */
45
    public function __construct($startInNew = 0, $startInOld = 0, $endInNew = 0, $endInOld = 0, $percentage = null)
46
    {
47
        $this->startInNew = $startInNew;
48
        $this->startInOld = $startInOld;
49
        $this->endInNew = $endInNew;
50
        $this->endInOld = $endInOld;
51
        $this->percentage = $percentage;
52
    }
53
54
    /**
55
     * @return int
56
     */
57
    public function getStartInNew()
58
    {
59
        return $this->startInNew;
60
    }
61
62
    /**
63
     * @param int $startInNew
64
     *
65
     * @return RowMatch
66
     */
67
    public function setStartInNew($startInNew)
68
    {
69
        $this->startInNew = $startInNew;
70
71
        return $this;
72
    }
73
74
    /**
75
     * @return int
76
     */
77
    public function getStartInOld()
78
    {
79
        return $this->startInOld;
80
    }
81
82
    /**
83
     * @param int $startInOld
84
     *
85
     * @return RowMatch
86
     */
87
    public function setStartInOld($startInOld)
88
    {
89
        $this->startInOld = $startInOld;
90
91
        return $this;
92
    }
93
94
    /**
95
     * @return int
96
     */
97
    public function getEndInNew()
98
    {
99
        return $this->endInNew;
100
    }
101
102
    /**
103
     * @param int $endInNew
104
     *
105
     * @return RowMatch
106
     */
107
    public function setEndInNew($endInNew)
108
    {
109
        $this->endInNew = $endInNew;
110
111
        return $this;
112
    }
113
114
    /**
115
     * @return int
116
     */
117
    public function getEndInOld()
118
    {
119
        return $this->endInOld;
120
    }
121
122
    /**
123
     * @param int $endInOld
124
     *
125
     * @return RowMatch
126
     */
127
    public function setEndInOld($endInOld)
128
    {
129
        $this->endInOld = $endInOld;
130
131
        return $this;
132
    }
133
}
134