RosterItem   A
last analyzed

Complexity

Total Complexity 6

Size/Duplication

Total Lines 71
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 6
c 0
b 0
f 0
lcom 0
cbo 0
dl 0
loc 71
ccs 15
cts 15
cp 1
rs 10

6 Methods

Rating   Name   Duplication   Size   Complexity  
A getRoster() 0 4 1
A setRoster() 0 5 1
A getHash() 0 4 1
A setHash() 0 5 1
A getRelativeFileName() 0 4 1
A setRelativeFileName() 0 5 1
1
<?php
2
3
namespace TemplesOfCode\CodeSanity;
4
5
/**
6
 * Class RosterItem
7
 * @package TemplesOfCode\CodeSanity
8
 */
9
class RosterItem
10
{
11
    /**
12
     * @var Roster
13
     */
14
    protected $roster;
15
16
    /**
17
     * @var string
18
     */
19
    private $hash;
20
21
    /***
22
     * @var string
23
     */
24
    private $relativeFileName;
25
26
    /**
27
     * @return Roster
28
     */
29 4
    public function getRoster()
30
    {
31 4
        return $this->roster;
32
    }
33
34
    /**
35
     * @param Roster $roster
36
     * @return RosterItem
37
     */
38 10
    public function setRoster(Roster $roster)
39
    {
40 10
        $this->roster = $roster;
41 10
        return $this;
42
    }
43
44
    /**
45
     * @return string
46
     */
47 10
    public function getHash()
48
    {
49 10
        return $this->hash;
50
    }
51
52
    /**
53
     * @param string $hash
54
     * @return RosterItem
55
     */
56 10
    public function setHash($hash)
57
    {
58 10
        $this->hash = $hash;
59 10
        return $this;
60
    }
61
62
    /**
63
     * @return string
64
     */
65 10
    public function getRelativeFileName()
66
    {
67 10
        return $this->relativeFileName;
68
    }
69
70
    /**
71
     * @param string $relativeFileName
72
     * @return RosterItem
73
     */
74 10
    public function setRelativeFileName($relativeFileName)
75
    {
76 10
        $this->relativeFileName = $relativeFileName;
77 10
        return $this;
78
    }
79
}
80