Poll   A
last analyzed

Complexity

Total Complexity 6

Size/Duplication

Total Lines 38
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

6 Methods

Rating   Name   Duplication   Size   Complexity  
A getName() 0 4 1
A setName() 0 4 1
A getEvent() 0 4 1
A setEvent() 0 4 1
A getChoices() 0 4 1
A setChoices() 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
class Poll
16
{
17
    private $name;
18
19
    private $event;
20
21
    private $choices;
22
23
    public function getName()
24
    {
25
        return $this->name;
26
    }
27
28
    public function setName($name)
29
    {
30
        $this->name = $name;
31
    }
32
33
    public function getEvent()
34
    {
35
        return $this->event;
36
    }
37
38
    public function setEvent(Event $event)
39
    {
40
        $this->event = $event;
41
    }
42
43
    public function getChoices()
44
    {
45
        return $this->choices;
46
    }
47
48
    public function setChoices($choices)
49
    {
50
        $this->choices = $choices;
51
    }
52
}
53