Passed
Push — master ( 691de2...3ef090 )
by Julito
09:33
created

CourseRequest::getTargetAudience()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
/* For licensing terms, see /license.txt */
4
5
namespace Chamilo\CoreBundle\Entity;
6
7
use Doctrine\ORM\Mapping as ORM;
8
9
/**
10
 * CourseRequest.
11
 *
12
 * @ORM\Table(name="course_request", uniqueConstraints={@ORM\UniqueConstraint(name="code", columns={"code"})})
13
 * @ORM\Entity
14
 */
15
class CourseRequest
16
{
17
    /**
18
     * @var int
19
     *
20
     * @ORM\Column(name="id", type="integer")
21
     * @ORM\Id
22
     * @ORM\GeneratedValue(strategy="IDENTITY")
23
     */
24
    protected $id;
25
26
    /**
27
     * @var User
28
     *
29
     * @ORM\ManyToOne(targetEntity="Chamilo\CoreBundle\Entity\User", cascade={"persist"})
30
     * @ORM\JoinColumn(name="user_id", referencedColumnName="id")
31
     */
32
    protected $user;
33
34
    /**
35
     * @var string
36
     *
37
     * @ORM\Column(name="code", type="string", length=40, nullable=false)
38
     */
39
    protected $code;
40
41
    /**
42
     * @var string
43
     *
44
     * @ORM\Column(name="directory", type="string", length=40, nullable=true)
45
     */
46
    protected $directory;
47
48
    /**
49
     * @var string
50
     *
51
     * @ORM\Column(name="db_name", type="string", length=40, nullable=true)
52
     */
53
    protected $dbName;
54
55
    /**
56
     * @var string
57
     *
58
     * @ORM\Column(name="course_language", type="string", length=20, nullable=true)
59
     */
60
    protected $courseLanguage;
61
62
    /**
63
     * @var string
64
     *
65
     * @ORM\Column(name="title", type="string", length=250, nullable=true)
66
     */
67
    protected $title;
68
69
    /**
70
     * @var string
71
     *
72
     * @ORM\Column(name="description", type="text", nullable=true)
73
     */
74
    protected $description;
75
76
    /**
77
     * @var string
78
     *
79
     * @ORM\Column(name="category_code", type="string", length=40, nullable=true)
80
     */
81
    protected $categoryCode;
82
83
    /**
84
     * @var string
85
     *
86
     * @ORM\Column(name="tutor_name", type="string", length=200, nullable=true)
87
     */
88
    protected $tutorName;
89
90
    /**
91
     * @var string
92
     *
93
     * @ORM\Column(name="visual_code", type="string", length=40, nullable=true)
94
     */
95
    protected $visualCode;
96
97
    /**
98
     * @var \DateTime
99
     *
100
     * @ORM\Column(name="request_date", type="datetime", nullable=false)
101
     */
102
    protected $requestDate;
103
104
    /**
105
     * @var string
106
     *
107
     * @ORM\Column(name="objetives", type="text", nullable=true)
108
     */
109
    protected $objetives;
110
111
    /**
112
     * @var string
113
     *
114
     * @ORM\Column(name="target_audience", type="text", nullable=true)
115
     */
116
    protected $targetAudience;
117
118
    /**
119
     * @var int
120
     *
121
     * @ORM\Column(name="status", type="integer", nullable=false)
122
     */
123
    protected $status;
124
125
    /**
126
     * @var int
127
     *
128
     * @ORM\Column(name="info", type="integer", nullable=false)
129
     */
130
    protected $info;
131
132
    /**
133
     * @var int
134
     *
135
     * @ORM\Column(name="exemplary_content", type="integer", nullable=false)
136
     */
137
    protected $exemplaryContent;
138
139
    /**
140
     * Constructor.
141
     */
142
    public function __construct()
143
    {
144
        $this->requestDate = new \DateTime();
145
    }
146
147
    public function setUser(User $user)
148
    {
149
        $this->user = $user;
150
151
        return $this;
152
    }
153
154
    /**
155
     * Get user.
156
     *
157
     * @return User
158
     */
159
    public function getUser()
160
    {
161
        return $this->user;
162
    }
163
164
    /**
165
     * Set code.
166
     *
167
     * @param string $code
168
     *
169
     * @return CourseRequest
170
     */
171
    public function setCode($code)
172
    {
173
        $this->code = $code;
174
175
        return $this;
176
    }
177
178
    /**
179
     * Get code.
180
     *
181
     * @return string
182
     */
183
    public function getCode()
184
    {
185
        return $this->code;
186
    }
187
188
    /**
189
     * Set directory.
190
     *
191
     * @param string $directory
192
     *
193
     * @return CourseRequest
194
     */
195
    public function setDirectory($directory)
196
    {
197
        $this->directory = $directory;
198
199
        return $this;
200
    }
201
202
    /**
203
     * Get directory.
204
     *
205
     * @return string
206
     */
207
    public function getDirectory()
208
    {
209
        return $this->directory;
210
    }
211
212
    /**
213
     * Set dbName.
214
     *
215
     * @param string $dbName
216
     *
217
     * @return CourseRequest
218
     */
219
    public function setDbName($dbName)
220
    {
221
        $this->dbName = $dbName;
222
223
        return $this;
224
    }
225
226
    /**
227
     * Get dbName.
228
     *
229
     * @return string
230
     */
231
    public function getDbName()
232
    {
233
        return $this->dbName;
234
    }
235
236
    /**
237
     * Set courseLanguage.
238
     *
239
     * @param string $courseLanguage
240
     *
241
     * @return CourseRequest
242
     */
243
    public function setCourseLanguage($courseLanguage)
244
    {
245
        $this->courseLanguage = $courseLanguage;
246
247
        return $this;
248
    }
249
250
    /**
251
     * Get courseLanguage.
252
     *
253
     * @return string
254
     */
255
    public function getCourseLanguage()
256
    {
257
        return $this->courseLanguage;
258
    }
259
260
    /**
261
     * Set title.
262
     *
263
     * @param string $title
264
     *
265
     * @return CourseRequest
266
     */
267
    public function setTitle($title)
268
    {
269
        $this->title = $title;
270
271
        return $this;
272
    }
273
274
    /**
275
     * Get title.
276
     *
277
     * @return string
278
     */
279
    public function getTitle()
280
    {
281
        return $this->title;
282
    }
283
284
    /**
285
     * Set description.
286
     *
287
     * @param string $description
288
     *
289
     * @return CourseRequest
290
     */
291
    public function setDescription($description)
292
    {
293
        $this->description = $description;
294
295
        return $this;
296
    }
297
298
    /**
299
     * Get description.
300
     *
301
     * @return string
302
     */
303
    public function getDescription()
304
    {
305
        return $this->description;
306
    }
307
308
    /**
309
     * Set categoryCode.
310
     *
311
     * @param string $categoryCode
312
     *
313
     * @return CourseRequest
314
     */
315
    public function setCategoryCode($categoryCode)
316
    {
317
        $this->categoryCode = $categoryCode;
318
319
        return $this;
320
    }
321
322
    /**
323
     * Get categoryCode.
324
     *
325
     * @return string
326
     */
327
    public function getCategoryCode()
328
    {
329
        return $this->categoryCode;
330
    }
331
332
    /**
333
     * Set tutorName.
334
     *
335
     * @param string $tutorName
336
     *
337
     * @return CourseRequest
338
     */
339
    public function setTutorName($tutorName)
340
    {
341
        $this->tutorName = $tutorName;
342
343
        return $this;
344
    }
345
346
    /**
347
     * Get tutorName.
348
     *
349
     * @return string
350
     */
351
    public function getTutorName()
352
    {
353
        return $this->tutorName;
354
    }
355
356
    /**
357
     * Set visualCode.
358
     *
359
     * @param string $visualCode
360
     *
361
     * @return CourseRequest
362
     */
363
    public function setVisualCode($visualCode)
364
    {
365
        $this->visualCode = $visualCode;
366
367
        return $this;
368
    }
369
370
    /**
371
     * Get visualCode.
372
     *
373
     * @return string
374
     */
375
    public function getVisualCode()
376
    {
377
        return $this->visualCode;
378
    }
379
380
    /**
381
     * Set requestDate.
382
     *
383
     * @param \DateTime $requestDate
384
     *
385
     * @return CourseRequest
386
     */
387
    public function setRequestDate($requestDate)
388
    {
389
        $this->requestDate = $requestDate;
390
391
        return $this;
392
    }
393
394
    /**
395
     * Get requestDate.
396
     *
397
     * @return \DateTime
398
     */
399
    public function getRequestDate()
400
    {
401
        return $this->requestDate;
402
    }
403
404
    /**
405
     * Set objetives.
406
     *
407
     * @param string $objetives
408
     *
409
     * @return CourseRequest
410
     */
411
    public function setObjetives($objetives)
412
    {
413
        $this->objetives = $objetives;
414
415
        return $this;
416
    }
417
418
    /**
419
     * Get objetives.
420
     *
421
     * @return string
422
     */
423
    public function getObjetives()
424
    {
425
        return $this->objetives;
426
    }
427
428
    /**
429
     * Set targetAudience.
430
     *
431
     * @param string $targetAudience
432
     *
433
     * @return CourseRequest
434
     */
435
    public function setTargetAudience($targetAudience)
436
    {
437
        $this->targetAudience = $targetAudience;
438
439
        return $this;
440
    }
441
442
    /**
443
     * Get targetAudience.
444
     *
445
     * @return string
446
     */
447
    public function getTargetAudience()
448
    {
449
        return $this->targetAudience;
450
    }
451
452
    /**
453
     * Set status.
454
     *
455
     * @param int $status
456
     *
457
     * @return CourseRequest
458
     */
459
    public function setStatus($status)
460
    {
461
        $this->status = $status;
462
463
        return $this;
464
    }
465
466
    /**
467
     * Get status.
468
     *
469
     * @return int
470
     */
471
    public function getStatus()
472
    {
473
        return $this->status;
474
    }
475
476
    /**
477
     * Set info.
478
     *
479
     * @param int $info
480
     *
481
     * @return CourseRequest
482
     */
483
    public function setInfo($info)
484
    {
485
        $this->info = $info;
486
487
        return $this;
488
    }
489
490
    /**
491
     * Get info.
492
     *
493
     * @return int
494
     */
495
    public function getInfo()
496
    {
497
        return $this->info;
498
    }
499
500
    /**
501
     * Set exemplaryContent.
502
     *
503
     * @param int $exemplaryContent
504
     *
505
     * @return CourseRequest
506
     */
507
    public function setExemplaryContent($exemplaryContent)
508
    {
509
        $this->exemplaryContent = $exemplaryContent;
510
511
        return $this;
512
    }
513
514
    /**
515
     * Get exemplaryContent.
516
     *
517
     * @return int
518
     */
519
    public function getExemplaryContent()
520
    {
521
        return $this->exemplaryContent;
522
    }
523
524
    /**
525
     * Get id.
526
     *
527
     * @return int
528
     */
529
    public function getId()
530
    {
531
        return $this->id;
532
    }
533
}
534