Passed
Push — master ( 77d6c9...732152 )
by Florian
03:45
created

Event::setFeedbackStartTime()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
/*
4
 * This file is part of the feedback project.
5
 *
6
 * (c) Florian Moser <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace App\Entity;
13
14
use App\Entity\Base\BaseEntity;
15
use App\Entity\Traits\IdTrait;
16
17
class Event extends BaseEntity
18
{
19
    use IdTrait;
20
21
    /**
22
     * @var string
23
     *
24
     * @ORM\Column(type="text")
25
     */
26
    private $name;
27
28
    /**
29
     * @var \DateTime
30
     *
31
     * @ORM\Column(type="date")
32
     */
33
    private $date;
34
35
    /**
36
     * @var string
37
     *
38
     * @ORM\Column(type="text")
39
     */
40
    private $feedbackStartTime;
41
42
    /**
43
     * @var string
44
     *
45
     * @ORM\Column(type="text")
46
     */
47
    private $feedbackEndTime;
48
49
    /**
50
     * @var string
51
     *
52
     * @ORM\Column(type="text")
53
     */
54
    private $template;
55
56
    /**
57
     * @var bool
58
     *
59
     * @ORM\Column(type="boolean")
60
     */
61
    private $hasLecture;
62
63
    /**
64
     * @var bool
65
     *
66
     * @ORM\Column(type="boolean")
67
     */
68
    private $hasExercise;
69
70
    /**
71
     * @return string
72
     */
73
    public function getName(): string
74
    {
75
        return $this->name;
76
    }
77
78
    /**
79
     * @param string $name
80
     */
81
    public function setName(string $name): void
82
    {
83
        $this->name = $name;
84
    }
85
86
    /**
87
     * @return \DateTime
88
     */
89
    public function getDate(): \DateTime
90
    {
91
        return $this->date;
92
    }
93
94
    /**
95
     * @param \DateTime $date
96
     */
97
    public function setDate(\DateTime $date): void
98
    {
99
        $this->date = $date;
100
    }
101
102
    /**
103
     * @return string
104
     */
105
    public function getFeedbackStartTime(): string
106
    {
107
        return $this->feedbackStartTime;
108
    }
109
110
    /**
111
     * @param string $feedbackStartTime
112
     */
113
    public function setFeedbackStartTime(string $feedbackStartTime): void
114
    {
115
        $this->feedbackStartTime = $feedbackStartTime;
116
    }
117
118
    /**
119
     * @return string
120
     */
121
    public function getFeedbackEndTime(): string
122
    {
123
        return $this->feedbackEndTime;
124
    }
125
126
    /**
127
     * @param string $feedbackEndTime
128
     */
129
    public function setFeedbackEndTime(string $feedbackEndTime): void
130
    {
131
        $this->feedbackEndTime = $feedbackEndTime;
132
    }
133
134
    /**
135
     * @return string
136
     */
137
    public function getTemplate(): string
138
    {
139
        return $this->template;
140
    }
141
142
    /**
143
     * @param string $template
144
     */
145
    public function setTemplate(string $template): void
146
    {
147
        $this->template = $template;
148
    }
149
150
    /**
151
     * @return bool
152
     */
153
    public function getHasLecture(): bool
154
    {
155
        return $this->hasLecture;
156
    }
157
158
    /**
159
     * @param bool $hasLecture
160
     */
161
    public function setHasLecture(bool $hasLecture): void
162
    {
163
        $this->hasLecture = $hasLecture;
164
    }
165
166
    /**
167
     * @return bool
168
     */
169
    public function getHasExercise(): bool
170
    {
171
        return $this->hasExercise;
172
    }
173
174
    /**
175
     * @param bool $hasExercise
176
     */
177
    public function setHasExercise(bool $hasExercise): void
178
    {
179
        $this->hasExercise = $hasExercise;
180
    }
181
}
182