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

CRoleGroup::setGroupId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 6
Ratio 100 %

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 1
dl 6
loc 6
rs 9.4285
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
 * CRoleGroup
10
 *
11
 * @ORM\Table(
12
 *  name="c_role_group",
13
 *  indexes={
14
 *      @ORM\Index(name="course", columns={"c_id"}),
15
 *      @ORM\Index(name="group", columns={"group_id"})
16
 *  }
17
 * )
18
 * @ORM\Entity
19
 */
20 View Code Duplication
class CRoleGroup
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
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 integer
47
     *
48
     * @ORM\Column(name="role_id", type="integer", nullable=false)
49
     */
50
    private $roleId;
51
52
    /**
53
     * @var string
54
     *
55
     * @ORM\Column(name="scope", type="string", length=20, nullable=false)
56
     */
57
    private $scope;
58
59
    /**
60
     * @var integer
61
     *
62
     * @ORM\Column(name="group_id", type="integer")
63
     */
64
    private $groupId;
65
66
67
    /**
68
     * Set roleId
69
     *
70
     * @param integer $roleId
71
     * @return CRoleGroup
72
     */
73
    public function setRoleId($roleId)
74
    {
75
        $this->roleId = $roleId;
76
77
        return $this;
78
    }
79
80
    /**
81
     * Get roleId
82
     *
83
     * @return integer
84
     */
85
    public function getRoleId()
86
    {
87
        return $this->roleId;
88
    }
89
90
    /**
91
     * Set scope
92
     *
93
     * @param string $scope
94
     * @return CRoleGroup
95
     */
96
    public function setScope($scope)
97
    {
98
        $this->scope = $scope;
99
100
        return $this;
101
    }
102
103
    /**
104
     * Get scope
105
     *
106
     * @return string
107
     */
108
    public function getScope()
109
    {
110
        return $this->scope;
111
    }
112
113
    /**
114
     * Set id
115
     *
116
     * @param integer $id
117
     * @return CRoleGroup
118
     */
119
    public function setId($id)
120
    {
121
        $this->id = $id;
122
123
        return $this;
124
    }
125
126
    /**
127
     * Get id
128
     *
129
     * @return integer
130
     */
131
    public function getId()
132
    {
133
        return $this->id;
134
    }
135
136
    /**
137
     * Set cId
138
     *
139
     * @param integer $cId
140
     * @return CRoleGroup
141
     */
142
    public function setCId($cId)
143
    {
144
        $this->cId = $cId;
145
146
        return $this;
147
    }
148
149
    /**
150
     * Get cId
151
     *
152
     * @return integer
153
     */
154
    public function getCId()
155
    {
156
        return $this->cId;
157
    }
158
159
    /**
160
     * Set groupId
161
     *
162
     * @param integer $groupId
163
     * @return CRoleGroup
164
     */
165
    public function setGroupId($groupId)
166
    {
167
        $this->groupId = $groupId;
168
169
        return $this;
170
    }
171
172
    /**
173
     * Get groupId
174
     *
175
     * @return integer
176
     */
177
    public function getGroupId()
178
    {
179
        return $this->groupId;
180
    }
181
}
182