Box::setModuleName()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
crap 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 Box extends Entity
12
{
13
    /**
14
     * @orm\ManyToOne(targetEntity="Page")
15
     * @orm\JoinColumn(name="page_from_id", referencedColumnName="id", onDelete="CASCADE")
16
     */
17
    private $pageFrom;
18
19
    /**
20
     * @orm\ManyToOne(targetEntity="Page")
21
     * @orm\JoinColumn(name="page_to_id", referencedColumnName="id", onDelete="CASCADE")
22
     */
23
    private $pageTo;
24
25
    /**
26
     * @orm\Column
27
     */
28
    private $box;
29
30
    /**
31
     * @orm\Column
32
     */
33
    private $presenter;
34
35
    /**
36
     * @orm\Column
37
     */
38
    private $moduleName;
39
40
    /**
41
     * @orm\Column
42
     */
43
    private $function;
44
45
    public function getPageFrom()
46
    {
47
        return $this->pageFrom;
48
    }
49
50 1
    public function setPageFrom($pageFrom)
51
    {
52 1
        $this->pageFrom = $pageFrom;
53 1
    }
54
55
    public function getPageTo()
56
    {
57
        return $this->pageTo;
58
    }
59
60 1
    public function setPageTo($pageTo)
61
    {
62 1
        $this->pageTo = $pageTo;
63 1
    }
64
65
    public function getBox()
66
    {
67
        return $this->box;
68
    }
69
70 1
    public function setBox($box)
71
    {
72 1
        $this->box = $box;
73 1
    }
74
75
    public function getPresenter()
76
    {
77
        return $this->presenter;
78
    }
79
80 1
    public function setPresenter($presenter)
81
    {
82 1
        $this->presenter = $presenter;
83 1
    }
84
85
    public function getFunction()
86
    {
87
        return $this->function;
88
    }
89
90 1
    public function setFunction($function)
91
    {
92 1
        $this->function = $function;
93 1
    }
94
95
    public function getModuleName()
96
    {
97
        return $this->moduleName;
98
    }
99
100 1
    public function setModuleName($moduleName)
101
    {
102 1
        $this->moduleName = $moduleName;
103 1
    }
104
}
105