ModuleList   A
last analyzed

Complexity

Total Complexity 7

Size/Duplication

Total Lines 114
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 2
Bugs 2 Features 0
Metric Value
wmc 7
c 2
b 2
f 0
lcom 0
cbo 0
dl 0
loc 114
rs 10

7 Methods

Rating   Name   Duplication   Size   Complexity  
A getId() 0 4 1
A setModuleName() 0 6 1
A getModuleName() 0 4 1
A setModuleDesc() 0 6 1
A getModuleDesc() 0 4 1
A setModuleRoute() 0 6 1
A getModuleRoute() 0 4 1
1
<?php
2
3
/**
4
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
5
 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
6
 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
7
 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
8
 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
9
 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
10
 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
11
 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
12
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
13
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
14
 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
15
 *
16
 * This software consists of voluntary contributions made by many individuals
17
 * and is licensed under the MIT license.
18
 */
19
namespace Application\Entity;
20
21
use Doctrine\ORM\Mapping as ORM;
22
23
/**
24
 * ModuleList.
25
 *
26
 * @ORM\Table(name="module_list")
27
 * @ORM\Entity
28
 */
29
class ModuleList
30
{
31
    /**
32
     * @var int
33
     *
34
     * @ORM\Column(name="id", type="integer", nullable=false)
35
     * @ORM\Id
36
     * @ORM\GeneratedValue(strategy="IDENTITY")
37
     */
38
    private $id;
39
40
    /**
41
     * @var string
42
     *
43
     * @ORM\Column(name="module_name", type="string", length=45, nullable=true)
44
     */
45
    private $moduleName;
46
47
    /**
48
     * @var string
49
     *
50
     * @ORM\Column(name="module_desc", type="string", length=255, nullable=true)
51
     */
52
    private $moduleDesc;
53
54
    /**
55
     * @var string
56
     *
57
     * @ORM\Column(name="module_route", type="string", length=45, nullable=true)
58
     */
59
    private $moduleRoute;
60
61
    /**
62
     * Get id.
63
     *
64
     * @return int
65
     */
66
    public function getId()
67
    {
68
        return $this->id;
69
    }
70
71
    /**
72
     * Set moduleName.
73
     *
74
     * @param string $moduleName
75
     *
76
     * @return ModuleList
77
     */
78
    public function setModuleName($moduleName)
79
    {
80
        $this->moduleName = $moduleName;
81
82
        return $this;
83
    }
84
85
    /**
86
     * Get moduleName.
87
     *
88
     * @return string
89
     */
90
    public function getModuleName()
91
    {
92
        return $this->moduleName;
93
    }
94
95
    /**
96
     * Set moduleDesc.
97
     *
98
     * @param string $moduleDesc
99
     *
100
     * @return ModuleList
101
     */
102
    public function setModuleDesc($moduleDesc)
103
    {
104
        $this->moduleDesc = $moduleDesc;
105
106
        return $this;
107
    }
108
109
    /**
110
     * Get moduleDesc.
111
     *
112
     * @return string
113
     */
114
    public function getModuleDesc()
115
    {
116
        return $this->moduleDesc;
117
    }
118
119
    /**
120
     * Set moduleRoute.
121
     *
122
     * @param string $moduleRoute
123
     *
124
     * @return ModuleList
125
     */
126
    public function setModuleRoute($moduleRoute)
127
    {
128
        $this->moduleRoute = $moduleRoute;
129
130
        return $this;
131
    }
132
133
    /**
134
     * Get moduleRoute.
135
     *
136
     * @return string
137
     */
138
    public function getModuleRoute()
139
    {
140
        return $this->moduleRoute;
141
    }
142
}
143