Module::getName()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 2
cp 0
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 2
1
<?php
2
3
namespace WebCMS\Entity;
4
5
use Doctrine\ORM\Mapping as orm;
6
7
/**
8
 * @orm\Entity
9
 * @author Tomáš Voslař <tomas.voslar at webcook.cz>
10
 */
11
class Module extends Entity
12
{
13
    /**
14
     * @orm\Column
15
     */
16
    private $name;
17
18
    /**
19
     * @orm\Column(type="text")
20
     */
21
    private $presenters;
22
23
    /**
24
     * @orm\Column(type="boolean")
25
     */
26
    private $active;
27
28
    public function getName()
29
    {
30
        return $this->name;
31
    }
32
33 2
    public function setName($name)
34
    {
35 2
        $this->name = $name;
36 2
    }
37
38
    public function getActive()
39
    {
40
        return $this->active;
41
    }
42
43
    /**
44
     * @param boolean $active
45
     */
46 2
    public function setActive($active)
47
    {
48 2
        $this->active = $active;
49 2
    }
50
51
    public function getPresenters()
52
    {
53
        return unserialize($this->presenters);
54
    }
55
56 2
    public function setPresenters($presenters)
57
    {
58 2
        $this->presenters = serialize($presenters);
59 2
    }
60
}
61