Completed
Push — master ( c9546d...95f607 )
by Julito
09:41
created

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