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

RowMatch   A

Complexity

Total Complexity 9

Size/Duplication

Total Lines 126
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 2
Bugs 0 Features 1
Metric Value
wmc 9
c 2
b 0
f 1
lcom 0
cbo 0
dl 0
loc 126
ccs 0
cts 27
cp 0
rs 10

9 Methods

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