Passed
Pull Request — master (#31)
by Josh
03:22
created

RowMatch::getStartInNew()   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 int|null
33
     */
34
    protected $percentage;
35
36
    /**
37
     * RowMatch constructor.
38
     *
39
     * @param $startInNew
40
     * @param $startInOld
41
     * @param $endInNew
42
     * @param $endInOld
43
     */
44
    public function __construct($startInNew = 0, $startInOld = 0, $endInNew = 0, $endInOld = 0, $percentage = null)
45
    {
46
        $this->startInNew = $startInNew;
47
        $this->startInOld = $startInOld;
48
        $this->endInNew = $endInNew;
49
        $this->endInOld = $endInOld;
50
        $this->percentage = $percentage;
51
    }
52
53
    /**
54
     * @return int
55
     */
56
    public function getStartInNew()
57
    {
58
        return $this->startInNew;
59
    }
60
61
    /**
62
     * @param int $startInNew
63
     *
64
     * @return RowMatch
65
     */
66
    public function setStartInNew($startInNew)
67
    {
68
        $this->startInNew = $startInNew;
69
70
        return $this;
71
    }
72
73
    /**
74
     * @return int
75
     */
76
    public function getStartInOld()
77
    {
78
        return $this->startInOld;
79
    }
80
81
    /**
82
     * @param int $startInOld
83
     *
84
     * @return RowMatch
85
     */
86
    public function setStartInOld($startInOld)
87
    {
88
        $this->startInOld = $startInOld;
89
90
        return $this;
91
    }
92
93
    /**
94
     * @return int
95
     */
96
    public function getEndInNew()
97
    {
98
        return $this->endInNew;
99
    }
100
101
    /**
102
     * @param int $endInNew
103
     *
104
     * @return RowMatch
105
     */
106
    public function setEndInNew($endInNew)
107
    {
108
        $this->endInNew = $endInNew;
109
110
        return $this;
111
    }
112
113
    /**
114
     * @return int
115
     */
116
    public function getEndInOld()
117
    {
118
        return $this->endInOld;
119
    }
120
121
    /**
122
     * @param int $endInOld
123
     *
124
     * @return RowMatch
125
     */
126
    public function setEndInOld($endInOld)
127
    {
128
        $this->endInOld = $endInOld;
129
130
        return $this;
131
    }
132
133
134
}
135