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

CRolePermissions::getId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
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
 * CRolePermissions
10
 *
11
 * @ORM\Table(
12
 *  name="c_role_permissions",
13
 *  indexes={
14
 *      @ORM\Index(name="course", columns="c_id"),
15
 *      @ORM\Index(name="role", columns="role_id")
16
 *  }
17
 * )
18
 * @ORM\Entity
19
 */
20
class CRolePermissions
21
{
22
    /**
23
     * @var integer
24
     *
25
     * @ORM\Column(name="iid", type="integer")
26
     * @ORM\Id
27
     * @ORM\GeneratedValue
28
     */
29
    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...
30
31
    /**
32
     * @var integer
33
     *
34
     * @ORM\Column(name="c_id", type="integer")
35
     */
36
    private $cId;
37
38
    /**
39
     * @var integer
40
     *
41
     * @ORM\Column(name="id", type="integer", nullable=true)
42
     */
43
    private $id;
44
45
    /**
46
     * @var boolean
47
     *
48
     * @ORM\Column(name="default_perm", type="boolean", nullable=false)
49
     */
50
    private $defaultPerm;
51
52
    /**
53
     * @var integer
54
     *
55
     * @ORM\Column(name="role_id", type="integer")
56
     */
57
    private $roleId;
58
59
    /**
60
     * @var string
61
     *
62
     * @ORM\Column(name="tool", type="string", length=250)
63
     */
64
    private $tool;
65
66
    /**
67
     * @var string
68
     *
69
     * @ORM\Column(name="action", type="string", length=50)
70
     */
71
    private $action;
72
73
    /**
74
     * Set defaultPerm
75
     *
76
     * @param boolean $defaultPerm
77
     * @return CRolePermissions
78
     */
79
    public function setDefaultPerm($defaultPerm)
80
    {
81
        $this->defaultPerm = $defaultPerm;
82
83
        return $this;
84
    }
85
86
    /**
87
     * Get defaultPerm
88
     *
89
     * @return boolean
90
     */
91
    public function getDefaultPerm()
92
    {
93
        return $this->defaultPerm;
94
    }
95
96
    /**
97
     * Set id
98
     *
99
     * @param integer $id
100
     * @return CRolePermissions
101
     */
102
    public function setId($id)
103
    {
104
        $this->id = $id;
105
106
        return $this;
107
    }
108
109
    /**
110
     * Get id
111
     *
112
     * @return integer
113
     */
114
    public function getId()
115
    {
116
        return $this->id;
117
    }
118
119
    /**
120
     * Set cId
121
     *
122
     * @param integer $cId
123
     * @return CRolePermissions
124
     */
125
    public function setCId($cId)
126
    {
127
        $this->cId = $cId;
128
129
        return $this;
130
    }
131
132
    /**
133
     * Get cId
134
     *
135
     * @return integer
136
     */
137
    public function getCId()
138
    {
139
        return $this->cId;
140
    }
141
142
    /**
143
     * Set roleId
144
     *
145
     * @param integer $roleId
146
     * @return CRolePermissions
147
     */
148
    public function setRoleId($roleId)
149
    {
150
        $this->roleId = $roleId;
151
152
        return $this;
153
    }
154
155
    /**
156
     * Get roleId
157
     *
158
     * @return integer
159
     */
160
    public function getRoleId()
161
    {
162
        return $this->roleId;
163
    }
164
165
    /**
166
     * Set tool
167
     *
168
     * @param string $tool
169
     * @return CRolePermissions
170
     */
171
    public function setTool($tool)
172
    {
173
        $this->tool = $tool;
174
175
        return $this;
176
    }
177
178
    /**
179
     * Get tool
180
     *
181
     * @return string
182
     */
183
    public function getTool()
184
    {
185
        return $this->tool;
186
    }
187
188
    /**
189
     * Set action
190
     *
191
     * @param string $action
192
     * @return CRolePermissions
193
     */
194
    public function setAction($action)
195
    {
196
        $this->action = $action;
197
198
        return $this;
199
    }
200
201
    /**
202
     * Get action
203
     *
204
     * @return string
205
     */
206
    public function getAction()
207
    {
208
        return $this->action;
209
    }
210
}
211