Roster   A
last analyzed

Complexity

Total Complexity 5

Size/Duplication

Total Lines 54
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 5
c 0
b 0
f 0
lcom 0
cbo 1
dl 0
loc 54
ccs 13
cts 13
cp 1
rs 10

5 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getRosterItems() 0 4 1
A setRosterItems() 0 5 1
A getLocation() 0 4 1
A setLocation() 0 5 1
1
<?php
2
3
namespace TemplesOfCode\CodeSanity;
4
5
use Doctrine\Common\Collections\ArrayCollection;
6
7
/**
8
 * Class Roster
9
 * @package TemplesOfCode\CodeSanity
10
 */
11
class Roster
12
{
13
    /**
14
     * @var ArrayCollection<RosterItem>
15
     */
16
    protected $rosterItems;
17
18
    /**
19
     * @var Location
20
     */
21
    protected $location;
22
23
24 13
    public function __construct()
25
    {
26 13
        $this->rosterItems = new ArrayCollection();
27 13
    }
28
29
    /**
30
     * @return ArrayCollection
31
     */
32 10
    public function getRosterItems()
33
    {
34 10
        return $this->rosterItems;
35
    }
36
37
    /**
38
     * @param ArrayCollection $rosterItems
39
     * @return Roster
40
     */
41 10
    public function setRosterItems($rosterItems)
42
    {
43 10
        $this->rosterItems = $rosterItems;
44 10
        return $this;
45
    }
46
47
    /**
48
     * @return Location
49
     */
50 4
    public function getLocation()
51
    {
52 4
        return $this->location;
53
    }
54
55
    /**
56
     * @param Location $location
57
     * @return Roster
58
     */
59 10
    public function setLocation($location)
60
    {
61 10
        $this->location = $location;
62 10
        return $this;
63
    }
64
}
65