Test Setup Failed
Branch master (be722e)
by Yannick
75:49 queued 20:48
created

CRole   A

Complexity

Total Complexity 10

Size/Duplication

Total Lines 161
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 161
rs 10
c 0
b 0
f 0
wmc 10
lcom 0
cbo 0

10 Methods

Rating   Name   Duplication   Size   Complexity  
A setRoleName() 0 6 1
A getRoleName() 0 4 1
A setRoleComment() 0 6 1
A getRoleComment() 0 4 1
A setDefaultRole() 0 6 1
A getDefaultRole() 0 4 1
A setRoleId() 0 6 1
A getRoleId() 0 4 1
A setCId() 0 6 1
A getCId() 0 4 1
1
<?php
2
/* For licensing terms, see /license.txt */
3
4
namespace Chamilo\CourseBundle\Entity;
5
6
use Doctrine\ORM\Mapping as ORM;
7
8
/**
9
 * CRole
10
 *
11
 * @ORM\Table(
12
 *  name="c_role",
13
 *  indexes={
14
 *      @ORM\Index(name="course", columns={"c_id"})
15
 *  }
16
 * )
17
 * @ORM\Entity
18
 */
19
class CRole
20
{
21
    /**
22
     * @var integer
23
     *
24
     * @ORM\Column(name="iid", type="integer")
25
     * @ORM\Id
26
     * @ORM\GeneratedValue
27
     */
28
    private $iid;
0 ignored issues
show
Unused Code introduced by
The property $iid is not used and could be removed.

This check marks private properties in classes that are never used. Those properties can be removed.

Loading history...
29
30
    /**
31
     * @var integer
32
     *
33
     * @ORM\Column(name="c_id", type="integer")
34
     */
35
    private $cId;
36
37
    /**
38
     * @var string
39
     *
40
     * @ORM\Column(name="role_name", type="string", length=250, nullable=false)
41
     */
42
    private $roleName;
43
44
    /**
45
     * @var string
46
     *
47
     * @ORM\Column(name="role_comment", type="text", nullable=true)
48
     */
49
    private $roleComment;
50
51
    /**
52
     * @var boolean
53
     *
54
     * @ORM\Column(name="default_role", type="boolean", nullable=true)
55
     */
56
    private $defaultRole;
57
58
    /**
59
     * @var integer
60
     *
61
     * @ORM\Column(name="role_id", type="integer")
62
     */
63
    private $roleId;
64
65
    /**
66
     * Set roleName
67
     *
68
     * @param string $roleName
69
     * @return CRole
70
     */
71
    public function setRoleName($roleName)
72
    {
73
        $this->roleName = $roleName;
74
75
        return $this;
76
    }
77
78
    /**
79
     * Get roleName
80
     *
81
     * @return string
82
     */
83
    public function getRoleName()
84
    {
85
        return $this->roleName;
86
    }
87
88
    /**
89
     * Set roleComment
90
     *
91
     * @param string $roleComment
92
     * @return CRole
93
     */
94
    public function setRoleComment($roleComment)
95
    {
96
        $this->roleComment = $roleComment;
97
98
        return $this;
99
    }
100
101
    /**
102
     * Get roleComment
103
     *
104
     * @return string
105
     */
106
    public function getRoleComment()
107
    {
108
        return $this->roleComment;
109
    }
110
111
    /**
112
     * Set defaultRole
113
     *
114
     * @param boolean $defaultRole
115
     * @return CRole
116
     */
117
    public function setDefaultRole($defaultRole)
118
    {
119
        $this->defaultRole = $defaultRole;
120
121
        return $this;
122
    }
123
124
    /**
125
     * Get defaultRole
126
     *
127
     * @return boolean
128
     */
129
    public function getDefaultRole()
130
    {
131
        return $this->defaultRole;
132
    }
133
134
    /**
135
     * Set roleId
136
     *
137
     * @param integer $roleId
138
     * @return CRole
139
     */
140
    public function setRoleId($roleId)
141
    {
142
        $this->roleId = $roleId;
143
144
        return $this;
145
    }
146
147
    /**
148
     * Get roleId
149
     *
150
     * @return integer
151
     */
152
    public function getRoleId()
153
    {
154
        return $this->roleId;
155
    }
156
157
    /**
158
     * Set cId
159
     *
160
     * @param integer $cId
161
     * @return CRole
162
     */
163
    public function setCId($cId)
164
    {
165
        $this->cId = $cId;
166
167
        return $this;
168
    }
169
170
    /**
171
     * Get cId
172
     *
173
     * @return integer
174
     */
175
    public function getCId()
176
    {
177
        return $this->cId;
178
    }
179
}
180