Completed
Push — master ( c6cfcb...a88956 )
by Julito
11:58
created

CRolePermissions::getId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

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