Passed
Push — master ( e2c783...35624b )
by Julito
09:25
created

CForumNotification::setThreadId()   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
 * CForumNotification.
11
 *
12
 * @ORM\Table(
13
 *  name="c_forum_notification",
14
 *  indexes={
15
 *      @ORM\Index(name="course", columns={"c_id"}),
16
 *      @ORM\Index(name="thread", columns={"thread_id"}),
17
 *      @ORM\Index(name="post", columns={"post_id"}),
18
 *      @ORM\Index(name="user_id", columns={"user_id"}),
19
 *      @ORM\Index(name="forum_id", columns={"forum_id"})
20
 *  }
21
 * )
22
 * @ORM\Entity
23
 */
24
class CForumNotification
25
{
26
    /**
27
     * @var int
28
     *
29
     * @ORM\Column(name="iid", type="integer")
30
     * @ORM\Id
31
     * @ORM\GeneratedValue
32
     */
33
    protected $iid;
34
35
    /**
36
     * @var int
37
     *
38
     * @ORM\Column(name="c_id", type="integer")
39
     */
40
    protected $cId;
41
42
    /**
43
     * @var int
44
     *
45
     * @ORM\Column(name="id", type="integer", nullable=true)
46
     */
47
    protected $id;
48
49
    /**
50
     * @var int
51
     *
52
     * @ORM\Column(name="user_id", type="integer")
53
     */
54
    protected $userId;
55
56
    /**
57
     * @var int
58
     *
59
     * @ORM\Column(name="forum_id", type="integer")
60
     */
61
    protected $forumId;
62
63
    /**
64
     * @var int
65
     *
66
     * @ORM\Column(name="thread_id", type="integer")
67
     */
68
    protected $threadId;
69
70
    /**
71
     * @var int
72
     *
73
     * @ORM\Column(name="post_id", type="integer")
74
     */
75
    protected $postId;
76
77
    public function __construct()
78
    {
79
        $this->forumId = 0;
80
        $this->threadId = 0;
81
        $this->postId = 0;
82
    }
83
84
    /**
85
     * Set id.
86
     *
87
     * @param int $id
88
     *
89
     * @return CForumNotification
90
     */
91
    public function setId($id)
92
    {
93
        $this->id = $id;
94
95
        return $this;
96
    }
97
98
    /**
99
     * Get id.
100
     *
101
     * @return int
102
     */
103
    public function getId()
104
    {
105
        return $this->id;
106
    }
107
108
    /**
109
     * Set cId.
110
     *
111
     * @param int $cId
112
     *
113
     * @return CForumNotification
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 userId.
134
     *
135
     * @param int $userId
136
     *
137
     * @return CForumNotification
138
     */
139
    public function setUserId($userId)
140
    {
141
        $this->userId = $userId;
142
143
        return $this;
144
    }
145
146
    /**
147
     * Get userId.
148
     *
149
     * @return int
150
     */
151
    public function getUserId()
152
    {
153
        return $this->userId;
154
    }
155
156
    /**
157
     * Set forumId.
158
     *
159
     * @param int $forumId
160
     *
161
     * @return CForumNotification
162
     */
163
    public function setForumId($forumId)
164
    {
165
        $this->forumId = $forumId;
166
167
        return $this;
168
    }
169
170
    /**
171
     * Get forumId.
172
     *
173
     * @return int
174
     */
175
    public function getForumId()
176
    {
177
        return $this->forumId;
178
    }
179
180
    /**
181
     * Set threadId.
182
     *
183
     * @param int $threadId
184
     *
185
     * @return CForumNotification
186
     */
187
    public function setThreadId($threadId)
188
    {
189
        $this->threadId = $threadId;
190
191
        return $this;
192
    }
193
194
    /**
195
     * Get threadId.
196
     *
197
     * @return int
198
     */
199
    public function getThreadId()
200
    {
201
        return $this->threadId;
202
    }
203
204
    /**
205
     * Set postId.
206
     *
207
     * @param int $postId
208
     *
209
     * @return CForumNotification
210
     */
211
    public function setPostId($postId)
212
    {
213
        $this->postId = $postId;
214
215
        return $this;
216
    }
217
218
    /**
219
     * Get postId.
220
     *
221
     * @return int
222
     */
223
    public function getPostId()
224
    {
225
        return $this->postId;
226
    }
227
}
228