Series   A
last analyzed

Complexity

Total Complexity 11

Size/Duplication

Total Lines 74
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 11
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 74
rs 10

11 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getUri() 0 4 1
A setUri() 0 4 1
A getName() 0 4 1
A setName() 0 4 1
A getDescription() 0 4 1
A setDescription() 0 4 1
A getEvents() 0 4 1
A setEvents() 0 4 1
A getFollowers() 0 4 1
A setFollowers() 0 4 1
1
<?php
2
3
/*
4
 * This is part of the webuni/srazy-api-client.
5
 *
6
 * (c) Martin Hasoň <[email protected]>
7
 * (c) Webuni s.r.o. <[email protected]>
8
 *
9
 * For the full copyright and license information, please view the LICENSE
10
 * file that was distributed with this source code.
11
 */
12
13
namespace Webuni\Srazy\Model;
14
15
use Doctrine\Common\Collections\ArrayCollection;
16
17
class Series
18
{
19
    private $uri;
20
21
    private $name;
22
23
    private $description;
24
25
    private $followers;
26
27
    private $events;
28
29
    public function __construct($name = null, $uri = null)
30
    {
31
        $this->name = $name;
32
        $this->uri = $uri;
33
    }
34
35
    public function getUri()
36
    {
37
        return $this->uri;
38
    }
39
40
    public function setUri($uri)
41
    {
42
        $this->uri = $uri;
43
    }
44
45
    public function getName()
46
    {
47
        return $this->name;
48
    }
49
50
    public function setName($name)
51
    {
52
        $this->name = $name;
53
    }
54
55
    public function getDescription()
56
    {
57
        return $this->description;
58
    }
59
60
    public function setDescription($description)
61
    {
62
        $this->description = $description;
63
    }
64
65
    /**
66
     * @return Event[]|ArrayCollection
67
     */
68
    public function getEvents()
69
    {
70
        return $this->events;
71
    }
72
73
    public function setEvents(ArrayCollection $events)
74
    {
75
        $this->events = $events;
76
    }
77
78
    /**
79
     * @return User[]|ArrayCollection
80
     */
81
    public function getFollowers()
82
    {
83
        return $this->followers;
84
    }
85
86
    public function setFollowers(ArrayCollection $followers)
87
    {
88
        $this->followers = $followers;
89
    }
90
}
91