1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace PiouPiou\RibsAdminBundle\Entity; |
4
|
|
|
|
5
|
|
|
use Doctrine\ORM\Mapping as ORM; |
6
|
|
|
use Gedmo\Mapping\Annotation as Gedmo; |
7
|
|
|
|
8
|
|
|
/** |
9
|
|
|
* Module |
10
|
|
|
* |
11
|
|
|
* @ORM\Table(name="module") |
12
|
|
|
* @ORM\Entity |
13
|
|
|
*/ |
14
|
|
|
class Module |
15
|
|
|
{ |
16
|
|
|
/** |
17
|
|
|
* @var integer |
18
|
|
|
* |
19
|
|
|
* @ORM\Column(name="id", type="integer", nullable=false) |
20
|
|
|
* @ORM\Id |
21
|
|
|
* @ORM\GeneratedValue(strategy="IDENTITY") |
22
|
|
|
*/ |
23
|
|
|
private $id; |
24
|
|
|
|
25
|
|
|
/** |
26
|
|
|
* @var string |
27
|
|
|
* |
28
|
|
|
* @ORM\Column(name="name", type="string", length=255, nullable=false) |
29
|
|
|
*/ |
30
|
|
|
private $name; |
31
|
|
|
|
32
|
|
|
/** |
33
|
|
|
* @var string |
34
|
|
|
* |
35
|
|
|
* @ORM\Column(name="title_tag", type="string", length=70, nullable=true) |
36
|
|
|
*/ |
37
|
|
|
private $titleTag; |
38
|
|
|
|
39
|
|
|
/** |
40
|
|
|
* @var string |
41
|
|
|
* |
42
|
|
|
* @ORM\Column(name="description_tag", type="string", length=160, nullable=true) |
43
|
|
|
*/ |
44
|
|
|
private $descriptionTag; |
45
|
|
|
|
46
|
|
|
/** |
47
|
|
|
* @var string |
48
|
|
|
* |
49
|
|
|
* @ORM\Column(name="title", type="string", length=255, nullable=false) |
50
|
|
|
*/ |
51
|
|
|
private $title; |
52
|
|
|
|
53
|
|
|
/** |
54
|
|
|
* @var string |
55
|
|
|
* |
56
|
|
|
* @ORM\Column(name="template", type="string", length=255, nullable=false) |
57
|
|
|
*/ |
58
|
|
|
private $template; |
59
|
|
|
|
60
|
|
|
/** |
61
|
|
|
* @var string |
62
|
|
|
* |
63
|
|
|
* @ORM\Column(name="url", type="string", length=255, nullable=false) |
64
|
|
|
*/ |
65
|
|
|
private $url; |
66
|
|
|
|
67
|
|
|
/** |
68
|
|
|
* @var integer |
69
|
|
|
* |
70
|
|
|
* @ORM\Column(name="active", type="integer", nullable=false) |
71
|
|
|
*/ |
72
|
|
|
private $active; |
73
|
|
|
|
74
|
|
|
/** |
75
|
|
|
* @var integer |
76
|
|
|
* |
77
|
|
|
* @ORM\Column(name="order", type="integer", nullable=false) |
78
|
|
|
*/ |
79
|
|
|
private $order; |
80
|
|
|
|
81
|
|
|
/** |
82
|
|
|
* @var integer |
83
|
|
|
* |
84
|
|
|
* @ORM\Column(name="displayed", type="integer", nullable=false) |
85
|
|
|
*/ |
86
|
|
|
private $displayed; |
87
|
|
|
|
88
|
|
|
/** |
89
|
|
|
* @var \DateTime |
90
|
|
|
* |
91
|
|
|
* @Gedmo\Timestampable(on="create") |
92
|
|
|
* @ORM\Column(name="creation_date", type="date", nullable=true) |
93
|
|
|
*/ |
94
|
|
|
private $creationDate; |
95
|
|
|
|
96
|
|
|
/** |
97
|
|
|
* @var \DateTime |
98
|
|
|
* |
99
|
|
|
* @Gedmo\Timestampable(on="update") |
100
|
|
|
* @ORM\Column(name="update_date", type="date", nullable=true) |
101
|
|
|
*/ |
102
|
|
|
private $updateDate; |
103
|
|
|
|
104
|
|
|
/** |
105
|
|
|
* @return int |
106
|
|
|
*/ |
107
|
|
|
public function getId(): int |
108
|
|
|
{ |
109
|
|
|
return $this->id; |
110
|
|
|
} |
111
|
|
|
|
112
|
|
|
/** |
113
|
|
|
* @param int $id |
114
|
|
|
*/ |
115
|
|
|
public function setId(int $id) |
116
|
|
|
{ |
117
|
|
|
$this->id = $id; |
118
|
|
|
} |
119
|
|
|
|
120
|
|
|
/** |
121
|
|
|
* @return string |
122
|
|
|
*/ |
123
|
|
|
public function getName(): string |
124
|
|
|
{ |
125
|
|
|
return $this->name; |
126
|
|
|
} |
127
|
|
|
|
128
|
|
|
/** |
129
|
|
|
* @param string $name |
130
|
|
|
*/ |
131
|
|
|
public function setName(string $name) |
132
|
|
|
{ |
133
|
|
|
$this->name = $name; |
134
|
|
|
} |
135
|
|
|
|
136
|
|
|
/** |
137
|
|
|
* @return string |
138
|
|
|
*/ |
139
|
|
|
public function getTitleTag(): string |
140
|
|
|
{ |
141
|
|
|
return $this->titleTag; |
142
|
|
|
} |
143
|
|
|
|
144
|
|
|
/** |
145
|
|
|
* @param string $titleTag |
146
|
|
|
*/ |
147
|
|
|
public function setTitleTag(string $titleTag) |
148
|
|
|
{ |
149
|
|
|
$this->titleTag = $titleTag; |
150
|
|
|
} |
151
|
|
|
|
152
|
|
|
/** |
153
|
|
|
* @return string |
154
|
|
|
*/ |
155
|
|
|
public function getDescriptionTag(): string |
156
|
|
|
{ |
157
|
|
|
return $this->descriptionTag; |
158
|
|
|
} |
159
|
|
|
|
160
|
|
|
/** |
161
|
|
|
* @param string $descriptionTag |
162
|
|
|
*/ |
163
|
|
|
public function setDescriptionTag(string $descriptionTag) |
164
|
|
|
{ |
165
|
|
|
$this->descriptionTag = $descriptionTag; |
166
|
|
|
} |
167
|
|
|
|
168
|
|
|
/** |
169
|
|
|
* @return string |
170
|
|
|
*/ |
171
|
|
|
public function getTitle(): string |
172
|
|
|
{ |
173
|
|
|
return $this->title; |
174
|
|
|
} |
175
|
|
|
|
176
|
|
|
/** |
177
|
|
|
* @param string $title |
178
|
|
|
*/ |
179
|
|
|
public function setTitle(string $title) |
180
|
|
|
{ |
181
|
|
|
$this->title = $title; |
182
|
|
|
} |
183
|
|
|
|
184
|
|
|
/** |
185
|
|
|
* @return string |
186
|
|
|
*/ |
187
|
|
|
public function getTemplate(): string |
188
|
|
|
{ |
189
|
|
|
return $this->template; |
190
|
|
|
} |
191
|
|
|
|
192
|
|
|
/** |
193
|
|
|
* @param string $template |
194
|
|
|
*/ |
195
|
|
|
public function setTemplate(string $template) |
196
|
|
|
{ |
197
|
|
|
$this->template = $template; |
198
|
|
|
} |
199
|
|
|
|
200
|
|
|
/** |
201
|
|
|
* @return string |
202
|
|
|
*/ |
203
|
|
|
public function getUrl(): string |
204
|
|
|
{ |
205
|
|
|
return $this->url; |
206
|
|
|
} |
207
|
|
|
|
208
|
|
|
/** |
209
|
|
|
* @param string $url |
210
|
|
|
*/ |
211
|
|
|
public function setUrl(string $url) |
212
|
|
|
{ |
213
|
|
|
$this->url = $url; |
214
|
|
|
} |
215
|
|
|
|
216
|
|
|
/** |
217
|
|
|
* @return int |
218
|
|
|
*/ |
219
|
|
|
public function getActive(): int |
220
|
|
|
{ |
221
|
|
|
return $this->active; |
222
|
|
|
} |
223
|
|
|
|
224
|
|
|
/** |
225
|
|
|
* @param int $active |
226
|
|
|
*/ |
227
|
|
|
public function setActive(int $active) |
228
|
|
|
{ |
229
|
|
|
$this->active = $active; |
230
|
|
|
} |
231
|
|
|
|
232
|
|
|
/** |
233
|
|
|
* @return int |
234
|
|
|
*/ |
235
|
|
|
public function getOrder(): int |
236
|
|
|
{ |
237
|
|
|
return $this->order; |
238
|
|
|
} |
239
|
|
|
|
240
|
|
|
/** |
241
|
|
|
* @param int $order |
242
|
|
|
*/ |
243
|
|
|
public function setOrder(int $order) |
244
|
|
|
{ |
245
|
|
|
$this->order = $order; |
246
|
|
|
} |
247
|
|
|
|
248
|
|
|
/** |
249
|
|
|
* @return int |
250
|
|
|
*/ |
251
|
|
|
public function getDisplayed(): int |
252
|
|
|
{ |
253
|
|
|
return $this->displayed; |
254
|
|
|
} |
255
|
|
|
|
256
|
|
|
/** |
257
|
|
|
* @param int $displayed |
258
|
|
|
*/ |
259
|
|
|
public function setDisplayed(int $displayed) |
260
|
|
|
{ |
261
|
|
|
$this->displayed = $displayed; |
262
|
|
|
} |
263
|
|
|
|
264
|
|
|
/** |
265
|
|
|
* @return \DateTime |
266
|
|
|
*/ |
267
|
|
|
public function getCreationDate(): \DateTime |
268
|
|
|
{ |
269
|
|
|
return $this->creationDate; |
270
|
|
|
} |
271
|
|
|
|
272
|
|
|
/** |
273
|
|
|
* @param \DateTime $creationDate |
274
|
|
|
*/ |
275
|
|
|
public function setCreationDate(\DateTime $creationDate) |
276
|
|
|
{ |
277
|
|
|
$this->creationDate = $creationDate; |
278
|
|
|
} |
279
|
|
|
|
280
|
|
|
/** |
281
|
|
|
* @return \DateTime |
282
|
|
|
*/ |
283
|
|
|
public function getUpdateDate(): \DateTime |
284
|
|
|
{ |
285
|
|
|
return $this->updateDate; |
286
|
|
|
} |
287
|
|
|
|
288
|
|
|
/** |
289
|
|
|
* @param \DateTime $updateDate |
290
|
|
|
*/ |
291
|
|
|
public function setUpdateDate(\DateTime $updateDate) |
292
|
|
|
{ |
293
|
|
|
$this->updateDate = $updateDate; |
294
|
|
|
} |
295
|
|
|
} |