Module   A
last analyzed

Complexity

Total Complexity 6

Size/Duplication

Total Lines 50
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 60%

Importance

Changes 0
Metric Value
wmc 6
lcom 1
cbo 1
dl 0
loc 50
ccs 9
cts 15
cp 0.6
rs 10
c 0
b 0
f 0

6 Methods

Rating   Name   Duplication   Size   Complexity  
A getName() 0 4 1
A setName() 0 4 1
A getActive() 0 4 1
A setActive() 0 4 1
A getPresenters() 0 4 1
A setPresenters() 0 4 1
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