Completed
Push — 1.11.x ( 042577...da253c )
by José
40:27
created

Announcement::setTitle()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 1
dl 0
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
 * CAnnouncement
10
 *
11
 * @ORM\Table(
12
 *  name="c_announcement",
13
 *  indexes={
14
 *      @ORM\Index(name="course", columns={"c_id"}),
15
 *      @ORM\Index(name="session_id", columns={"session_id"})
16
 *  }
17
 * )
18
 * @ORM\Entity
19
 */
20
class CAnnouncement
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="id", type="integer", nullable=true)
35
     */
36
    private $id;
37
38
    /**
39
     * @var integer
40
     *
41
     * @ORM\Column(name="c_id", type="integer")
42
     */
43
    private $cId;
44
45
    /**
46
     * @var string
47
     *
48
     * @ORM\Column(name="title", type="text", nullable=true)
49
     */
50
    private $title;
51
52
    /**
53
     * @var string
54
     *
55
     * @ORM\Column(name="content", type="text", nullable=true)
56
     */
57
    private $content;
58
59
    /**
60
     * @var \DateTime
61
     *
62
     * @ORM\Column(name="end_date", type="date", nullable=true)
63
     */
64
    private $endDate;
65
66
    /**
67
     * @var integer
68
     *
69
     * @ORM\Column(name="display_order", type="integer", nullable=false)
70
     */
71
    private $displayOrder;
72
73
    /**
74
     * @var boolean
75
     *
76
     * @ORM\Column(name="email_sent", type="boolean", nullable=true)
77
     */
78
    private $emailSent;
79
80
    /**
81
     * @var integer
82
     *
83
     * @ORM\Column(name="session_id", type="integer", nullable=true)
84
     */
85
    private $sessionId;
86
87
    /**
88
     * Set title
89
     *
90
     * @param string $title
91
     * @return CAnnouncement
92
     */
93
    public function setTitle($title)
94
    {
95
        $this->title = $title;
96
97
        return $this;
98
    }
99
100
    /**
101
     * Get title
102
     *
103
     * @return string
104
     */
105
    public function getTitle()
106
    {
107
        return $this->title;
108
    }
109
110
    /**
111
     * Set content
112
     *
113
     * @param string $content
114
     * @return CAnnouncement
115
     */
116
    public function setContent($content)
117
    {
118
        $this->content = $content;
119
120
        return $this;
121
    }
122
123
    /**
124
     * Get content
125
     *
126
     * @return string
127
     */
128
    public function getContent()
129
    {
130
        return $this->content;
131
    }
132
133
    /**
134
     * Set endDate
135
     *
136
     * @param \DateTime $endDate
137
     * @return CAnnouncement
138
     */
139
    public function setEndDate($endDate)
140
    {
141
        $this->endDate = $endDate;
142
143
        return $this;
144
    }
145
146
    /**
147
     * Get endDate
148
     *
149
     * @return \DateTime
150
     */
151
    public function getEndDate()
152
    {
153
        return $this->endDate;
154
    }
155
156
    /**
157
     * Set displayOrder
158
     *
159
     * @param integer $displayOrder
160
     * @return CAnnouncement
161
     */
162
    public function setDisplayOrder($displayOrder)
163
    {
164
        $this->displayOrder = $displayOrder;
165
166
        return $this;
167
    }
168
169
    /**
170
     * Get displayOrder
171
     *
172
     * @return integer
173
     */
174
    public function getDisplayOrder()
175
    {
176
        return $this->displayOrder;
177
    }
178
179
    /**
180
     * Set emailSent
181
     *
182
     * @param boolean $emailSent
183
     * @return CAnnouncement
184
     */
185
    public function setEmailSent($emailSent)
186
    {
187
        $this->emailSent = $emailSent;
188
189
        return $this;
190
    }
191
192
    /**
193
     * Get emailSent
194
     *
195
     * @return boolean
196
     */
197
    public function getEmailSent()
198
    {
199
        return $this->emailSent;
200
    }
201
202
    /**
203
     * Set sessionId
204
     *
205
     * @param integer $sessionId
206
     * @return CAnnouncement
207
     */
208
    public function setSessionId($sessionId)
209
    {
210
        $this->sessionId = $sessionId;
211
212
        return $this;
213
    }
214
215
    /**
216
     * Get sessionId
217
     *
218
     * @return integer
219
     */
220
    public function getSessionId()
221
    {
222
        return $this->sessionId;
223
    }
224
225
    /**
226
     * Set id
227
     *
228
     * @param integer $id
229
     * @return CAnnouncement
230
     */
231
    public function setId($id)
232
    {
233
        $this->id = $id;
234
235
        return $this;
236
    }
237
238
    /**
239
     * Get id
240
     *
241
     * @return integer
242
     */
243
    public function getId()
244
    {
245
        return $this->id;
246
    }
247
248
    /**
249
     * Set cId
250
     *
251
     * @param integer $cId
252
     * @return CAnnouncement
253
     */
254
    public function setCId($cId)
255
    {
256
        $this->cId = $cId;
257
258
        return $this;
259
    }
260
261
    /**
262
     * Get cId
263
     *
264
     * @return integer
265
     */
266
    public function getCId()
267
    {
268
        return $this->cId;
269
    }
270
}
271