Passed
Push — master ( 190bd7...86c511 )
by Julito
09:39
created

SharedSurvey::setSurveyThanks()   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
nop 1
dl 0
loc 5
rs 10
c 0
b 0
f 0
nc 1
1
<?php
2
/* For licensing terms, see /license.txt */
3
4
namespace Chamilo\CoreBundle\Entity;
5
6
use Doctrine\ORM\Mapping as ORM;
7
8
/**
9
 * SharedSurvey.
10
 *
11
 * @ORM\Table(name="shared_survey", uniqueConstraints={@ORM\UniqueConstraint(name="id", columns={"survey_id"})})
12
 * @ORM\Entity
13
 */
14
class SharedSurvey
15
{
16
    /**
17
     * @var int
18
     *
19
     * @ORM\Column(name="survey_id", type="integer")
20
     * @ORM\Id
21
     * @ORM\GeneratedValue(strategy="IDENTITY")
22
     */
23
    protected $surveyId;
24
25
    /**
26
     * @var string
27
     *
28
     * @ORM\Column(name="code", type="string", length=20, nullable=true)
29
     */
30
    protected $code;
31
32
    /**
33
     * @var string
34
     *
35
     * @ORM\Column(name="title", type="text", nullable=true)
36
     */
37
    protected $title;
38
39
    /**
40
     * @var string
41
     *
42
     * @ORM\Column(name="subtitle", type="text", nullable=true)
43
     */
44
    protected $subtitle;
45
46
    /**
47
     * @var string
48
     *
49
     * @ORM\Column(name="author", type="string", length=250, nullable=true)
50
     */
51
    protected $author;
52
53
    /**
54
     * @var string
55
     *
56
     * @ORM\Column(name="lang", type="string", length=20, nullable=true)
57
     */
58
    protected $lang;
59
60
    /**
61
     * @var string
62
     *
63
     * @ORM\Column(name="template", type="string", length=20, nullable=true)
64
     */
65
    protected $template;
66
67
    /**
68
     * @var string
69
     *
70
     * @ORM\Column(name="intro", type="text", nullable=true)
71
     */
72
    protected $intro;
73
74
    /**
75
     * @var string
76
     *
77
     * @ORM\Column(name="surveythanks", type="text", nullable=true)
78
     */
79
    protected $surveythanks;
80
81
    /**
82
     * @var \DateTime
83
     *
84
     * @ORM\Column(name="creation_date", type="datetime", nullable=false)
85
     */
86
    protected $creationDate;
87
88
    /**
89
     * @var string
90
     *
91
     * @ORM\Column(name="course_code", type="string", length=40, nullable=false)
92
     */
93
    protected $courseCode;
94
95
    /**
96
     * Set code.
97
     *
98
     * @param string $code
99
     *
100
     * @return SharedSurvey
101
     */
102
    public function setCode($code)
103
    {
104
        $this->code = $code;
105
106
        return $this;
107
    }
108
109
    /**
110
     * Get code.
111
     *
112
     * @return string
113
     */
114
    public function getCode()
115
    {
116
        return $this->code;
117
    }
118
119
    /**
120
     * Set title.
121
     *
122
     * @param string $title
123
     *
124
     * @return SharedSurvey
125
     */
126
    public function setTitle($title)
127
    {
128
        $this->title = $title;
129
130
        return $this;
131
    }
132
133
    /**
134
     * Get title.
135
     *
136
     * @return string
137
     */
138
    public function getTitle()
139
    {
140
        return $this->title;
141
    }
142
143
    /**
144
     * Set subtitle.
145
     *
146
     * @param string $subtitle
147
     *
148
     * @return SharedSurvey
149
     */
150
    public function setSubtitle($subtitle)
151
    {
152
        $this->subtitle = $subtitle;
153
154
        return $this;
155
    }
156
157
    /**
158
     * Get subtitle.
159
     *
160
     * @return string
161
     */
162
    public function getSubtitle()
163
    {
164
        return $this->subtitle;
165
    }
166
167
    /**
168
     * Set author.
169
     *
170
     * @param string $author
171
     *
172
     * @return SharedSurvey
173
     */
174
    public function setAuthor($author)
175
    {
176
        $this->author = $author;
177
178
        return $this;
179
    }
180
181
    /**
182
     * Get author.
183
     *
184
     * @return string
185
     */
186
    public function getAuthor()
187
    {
188
        return $this->author;
189
    }
190
191
    /**
192
     * Set lang.
193
     *
194
     * @param string $lang
195
     *
196
     * @return SharedSurvey
197
     */
198
    public function setLang($lang)
199
    {
200
        $this->lang = $lang;
201
202
        return $this;
203
    }
204
205
    /**
206
     * Get lang.
207
     *
208
     * @return string
209
     */
210
    public function getLang()
211
    {
212
        return $this->lang;
213
    }
214
215
    /**
216
     * Set template.
217
     *
218
     * @param string $template
219
     *
220
     * @return SharedSurvey
221
     */
222
    public function setTemplate($template)
223
    {
224
        $this->template = $template;
225
226
        return $this;
227
    }
228
229
    /**
230
     * Get template.
231
     *
232
     * @return string
233
     */
234
    public function getTemplate()
235
    {
236
        return $this->template;
237
    }
238
239
    /**
240
     * Set intro.
241
     *
242
     * @param string $intro
243
     *
244
     * @return SharedSurvey
245
     */
246
    public function setIntro($intro)
247
    {
248
        $this->intro = $intro;
249
250
        return $this;
251
    }
252
253
    /**
254
     * Get intro.
255
     *
256
     * @return string
257
     */
258
    public function getIntro()
259
    {
260
        return $this->intro;
261
    }
262
263
    /**
264
     * Set surveythanks.
265
     *
266
     * @param string $value
267
     *
268
     * @return SharedSurvey
269
     */
270
    public function setSurveyThanks($value)
271
    {
272
        $this->surveythanks = $value;
273
274
        return $this;
275
    }
276
277
    /**
278
     *
279
     * @return string
280
     */
281
    public function getSurveyThanks()
282
    {
283
        return $this->surveythanks;
284
    }
285
286
    /**
287
     * Set creationDate.
288
     *
289
     * @param \DateTime $creationDate
290
     *
291
     * @return SharedSurvey
292
     */
293
    public function setCreationDate($creationDate)
294
    {
295
        $this->creationDate = $creationDate;
296
297
        return $this;
298
    }
299
300
    /**
301
     * Get creationDate.
302
     *
303
     * @return \DateTime
304
     */
305
    public function getCreationDate()
306
    {
307
        return $this->creationDate;
308
    }
309
310
    /**
311
     * Set courseCode.
312
     *
313
     * @param string $courseCode
314
     *
315
     * @return SharedSurvey
316
     */
317
    public function setCourseCode($courseCode)
318
    {
319
        $this->courseCode = $courseCode;
320
321
        return $this;
322
    }
323
324
    /**
325
     * Get courseCode.
326
     *
327
     * @return string
328
     */
329
    public function getCourseCode()
330
    {
331
        return $this->courseCode;
332
    }
333
334
    /**
335
     * Get surveyId.
336
     *
337
     * @return int
338
     */
339
    public function getSurveyId()
340
    {
341
        return $this->surveyId;
342
    }
343
}
344