RosterItem::setHash()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

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