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

CWikiMailcue::getType()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 4
Ratio 100 %

Importance

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