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

CRoleGroup::setRoleId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 5
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
 * CRoleGroup.
11
 *
12
 * @ORM\Table(
13
 *  name="c_role_group",
14
 *  indexes={
15
 *      @ORM\Index(name="course", columns={"c_id"}),
16
 *      @ORM\Index(name="group", columns={"group_id"})
17
 *  }
18
 * )
19
 * @ORM\Entity
20
 */
21
class CRoleGroup
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 int
41
     *
42
     * @ORM\Column(name="role_id", type="integer", nullable=false)
43
     */
44
    protected $roleId;
45
46
    /**
47
     * @var string
48
     *
49
     * @ORM\Column(name="scope", type="string", length=20, nullable=false)
50
     */
51
    protected $scope;
52
53
    /**
54
     * @var int
55
     *
56
     * @ORM\Column(name="group_id", type="integer")
57
     */
58
    protected $groupId;
59
60
    /**
61
     * Set roleId.
62
     *
63
     * @param int $roleId
64
     *
65
     * @return CRoleGroup
66
     */
67
    public function setRoleId($roleId)
68
    {
69
        $this->roleId = $roleId;
70
71
        return $this;
72
    }
73
74
    /**
75
     * Get roleId.
76
     *
77
     * @return int
78
     */
79
    public function getRoleId()
80
    {
81
        return $this->roleId;
82
    }
83
84
    /**
85
     * Set scope.
86
     *
87
     * @param string $scope
88
     *
89
     * @return CRoleGroup
90
     */
91
    public function setScope($scope)
92
    {
93
        $this->scope = $scope;
94
95
        return $this;
96
    }
97
98
    /**
99
     * Get scope.
100
     *
101
     * @return string
102
     */
103
    public function getScope()
104
    {
105
        return $this->scope;
106
    }
107
108
    /**
109
     * Set cId.
110
     *
111
     * @param int $cId
112
     *
113
     * @return CRoleGroup
114
     */
115
    public function setCId($cId)
116
    {
117
        $this->cId = $cId;
118
119
        return $this;
120
    }
121
122
    /**
123
     * Get cId.
124
     *
125
     * @return int
126
     */
127
    public function getCId()
128
    {
129
        return $this->cId;
130
    }
131
132
    /**
133
     * Set groupId.
134
     *
135
     * @param int $groupId
136
     *
137
     * @return CRoleGroup
138
     */
139
    public function setGroupId($groupId)
140
    {
141
        $this->groupId = $groupId;
142
143
        return $this;
144
    }
145
146
    /**
147
     * Get groupId.
148
     *
149
     * @return int
150
     */
151
    public function getGroupId()
152
    {
153
        return $this->groupId;
154
    }
155
}
156