DiffItem::getTargetRosterItem()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 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