DiffItem   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 48
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 4
c 0
b 0
f 0
lcom 0
cbo 0
dl 0
loc 48
ccs 10
cts 10
cp 1
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getSotRosterItem() 0 4 1
A setSotRosterItem() 0 5 1
A getTargetRosterItem() 0 4 1
A setTargetRosterItem() 0 5 1
1
<?php
2
3
namespace TemplesOfCode\CodeSanity;
4
5
/**
6
 * Class DiffItem
7
 * @package TemplesOfCode\CodeSanity
8
 */
9
class DiffItem
10
{
11
    /**
12
     * @var RosterItem
13
     */
14
    protected $sotRosterItem = null;
15
16
    /**
17
     * @var RosterItem
18
     */
19
    protected $targetRosterItem = null;
20
21
    /**
22
     * @return RosterItem
23
     */
24 6
    public function getSotRosterItem()
25
    {
26 6
        return $this->sotRosterItem;
27
    }
28
29
    /**
30
     * @param RosterItem $sotRosterItem
31
     * @return DiffItem
32
     */
33 6
    public function setSotRosterItem(RosterItem $sotRosterItem)
34
    {
35 6
        $this->sotRosterItem = $sotRosterItem;
36 6
        return $this;
37
    }
38
39
    /**
40
     * @return RosterItem
41
     */
42 7
    public function getTargetRosterItem()
43
    {
44 7
        return $this->targetRosterItem;
45
    }
46
47
    /**
48
     * @param RosterItem $targetRosterItem
49
     * @return DiffItem
50
     */
51 6
    public function setTargetRosterItem(RosterItem $targetRosterItem)
52
    {
53 6
        $this->targetRosterItem = $targetRosterItem;
54 6
        return $this;
55
    }
56
}
57