1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace Cdf\BiCoreBundle\Entity; |
4
|
|
|
|
5
|
|
|
use Doctrine\ORM\Mapping as ORM; |
6
|
|
|
|
7
|
|
|
/** |
8
|
|
|
* Cdf\BiCoreBundle\Menuapplicazione. |
9
|
|
|
* |
10
|
|
|
* @ORM\Entity() |
11
|
|
|
* @ORM\Table(name="Menuapplicazione") |
12
|
|
|
* @ORM\InheritanceType("SINGLE_TABLE") |
13
|
|
|
* @ORM\DiscriminatorColumn(name="discr", type="string") |
14
|
|
|
* @ORM\DiscriminatorMap({"base":"BaseMenuapplicazione", "extended":"Menuapplicazione"}) |
15
|
|
|
* @SuppressWarnings(PHPMD) |
16
|
|
|
*/ |
17
|
|
|
class BaseMenuapplicazione |
18
|
|
|
{ |
19
|
|
|
/** |
20
|
|
|
* @ORM\Id |
21
|
|
|
* @ORM\Column(type="integer") |
22
|
|
|
* @ORM\GeneratedValue(strategy="AUTO") |
23
|
|
|
*/ |
24
|
|
|
protected $id; |
25
|
|
|
|
26
|
|
|
/** |
27
|
|
|
* @ORM\Column(type="string", length=255, nullable=true) |
28
|
|
|
*/ |
29
|
|
|
protected $nome; |
30
|
|
|
|
31
|
|
|
/** |
32
|
|
|
* @ORM\Column(type="string", length=640, nullable=true) |
33
|
|
|
*/ |
34
|
|
|
protected $percorso; |
35
|
|
|
|
36
|
|
|
/** |
37
|
|
|
* @ORM\Column(type="integer", nullable=true) |
38
|
|
|
*/ |
39
|
|
|
protected $padre; |
40
|
|
|
|
41
|
|
|
/** |
42
|
|
|
* @ORM\Column(type="integer", nullable=true) |
43
|
|
|
*/ |
44
|
|
|
protected $ordine; |
45
|
|
|
|
46
|
|
|
/** |
47
|
|
|
* @ORM\Column(type="boolean", nullable=true) |
48
|
|
|
*/ |
49
|
|
|
protected $attivo; |
50
|
|
|
|
51
|
|
|
/** |
52
|
|
|
* @ORM\Column(type="string", length=255, nullable=true) |
53
|
|
|
*/ |
54
|
|
|
protected $target; |
55
|
|
|
|
56
|
|
|
/** |
57
|
|
|
* @ORM\Column(type="string", length=45, nullable=true) |
58
|
|
|
*/ |
59
|
|
|
protected $tag; |
60
|
|
|
|
61
|
|
|
/** |
62
|
|
|
* @ORM\Column(type="boolean", nullable=true) |
63
|
|
|
*/ |
64
|
|
|
protected $notifiche; |
65
|
|
|
|
66
|
|
|
/** |
67
|
|
|
* @ORM\Column(type="boolean", nullable=true) |
68
|
|
|
*/ |
69
|
|
|
protected $autorizzazionerichiesta; |
70
|
|
|
|
71
|
|
|
/** |
72
|
|
|
* @ORM\Column(type="string", length=640, nullable=true) |
73
|
|
|
*/ |
74
|
|
|
protected $percorsonotifiche; |
75
|
|
|
|
76
|
3 |
|
public function __construct() |
77
|
|
|
{ |
78
|
3 |
|
} |
79
|
|
|
|
80
|
|
|
/** |
81
|
|
|
* Set the value of id. |
82
|
|
|
* |
83
|
|
|
* @param int $id |
84
|
|
|
* |
85
|
|
|
* @return \Cdf\BiCoreBundle\Entity\Menuapplicazione |
86
|
|
|
*/ |
87
|
|
|
public function setId($id) |
88
|
|
|
{ |
89
|
|
|
$this->id = $id; |
90
|
|
|
|
91
|
|
|
return $this; |
92
|
|
|
} |
93
|
|
|
|
94
|
|
|
/** |
95
|
|
|
* Get the value of id. |
96
|
|
|
* |
97
|
|
|
* @return int |
98
|
|
|
*/ |
99
|
13 |
|
public function getId() |
100
|
|
|
{ |
101
|
13 |
|
return $this->id; |
102
|
|
|
} |
103
|
|
|
|
104
|
|
|
/** |
105
|
|
|
* Set the value of nome. |
106
|
|
|
* |
107
|
|
|
* @param string $nome |
108
|
|
|
* |
109
|
|
|
* @return \Cdf\BiCoreBundle\Entity\Menuapplicazione |
110
|
|
|
*/ |
111
|
3 |
|
public function setNome($nome) |
112
|
|
|
{ |
113
|
3 |
|
$this->nome = $nome; |
114
|
|
|
|
115
|
3 |
|
return $this; |
116
|
|
|
} |
117
|
|
|
|
118
|
|
|
/** |
119
|
|
|
* Get the value of nome. |
120
|
|
|
* |
121
|
|
|
* @return string |
122
|
|
|
*/ |
123
|
12 |
|
public function getNome() |
124
|
|
|
{ |
125
|
12 |
|
return $this->nome; |
126
|
|
|
} |
127
|
|
|
|
128
|
|
|
/** |
129
|
|
|
* Set the value of percorso. |
130
|
|
|
* |
131
|
|
|
* @param string $percorso |
132
|
|
|
* |
133
|
|
|
* @return \Cdf\BiCoreBundle\Entity\Menuapplicazione |
134
|
|
|
*/ |
135
|
2 |
|
public function setPercorso($percorso) |
136
|
|
|
{ |
137
|
2 |
|
$this->percorso = $percorso; |
138
|
|
|
|
139
|
2 |
|
return $this; |
140
|
|
|
} |
141
|
|
|
|
142
|
|
|
/** |
143
|
|
|
* Get the value of percorso. |
144
|
|
|
* |
145
|
|
|
* @return string |
146
|
|
|
*/ |
147
|
12 |
|
public function getPercorso() |
148
|
|
|
{ |
149
|
12 |
|
return $this->percorso; |
150
|
|
|
} |
151
|
|
|
|
152
|
|
|
/** |
153
|
|
|
* Set the value of padre. |
154
|
|
|
* |
155
|
|
|
* @param int $padre |
156
|
|
|
* |
157
|
|
|
* @return \Cdf\BiCoreBundle\Entity\Menuapplicazione |
158
|
|
|
*/ |
159
|
2 |
|
public function setPadre($padre) |
160
|
|
|
{ |
161
|
2 |
|
$this->padre = $padre; |
162
|
|
|
|
163
|
2 |
|
return $this; |
164
|
|
|
} |
165
|
|
|
|
166
|
|
|
/** |
167
|
|
|
* Get the value of padre. |
168
|
|
|
* |
169
|
|
|
* @return int |
170
|
|
|
*/ |
171
|
2 |
|
public function getPadre() |
172
|
|
|
{ |
173
|
2 |
|
return $this->padre; |
174
|
|
|
} |
175
|
|
|
|
176
|
|
|
/** |
177
|
|
|
* Set the value of ordine. |
178
|
|
|
* |
179
|
|
|
* @param int $ordine |
180
|
|
|
* |
181
|
|
|
* @return \Cdf\BiCoreBundle\Entity\Menuapplicazione |
182
|
|
|
*/ |
183
|
2 |
|
public function setOrdine($ordine) |
184
|
|
|
{ |
185
|
2 |
|
$this->ordine = $ordine; |
186
|
|
|
|
187
|
2 |
|
return $this; |
188
|
|
|
} |
189
|
|
|
|
190
|
|
|
/** |
191
|
|
|
* Get the value of ordine. |
192
|
|
|
* |
193
|
|
|
* @return int |
194
|
|
|
*/ |
195
|
2 |
|
public function getOrdine() |
196
|
|
|
{ |
197
|
2 |
|
return $this->ordine; |
198
|
|
|
} |
199
|
|
|
|
200
|
|
|
/** |
201
|
|
|
* Set the value of attivo. |
202
|
|
|
* |
203
|
|
|
* @param bool $attivo |
204
|
|
|
* |
205
|
|
|
* @return \Cdf\BiCoreBundle\Entity\Menuapplicazione |
206
|
|
|
*/ |
207
|
3 |
|
public function setAttivo($attivo) |
208
|
|
|
{ |
209
|
3 |
|
$this->attivo = $attivo; |
210
|
|
|
|
211
|
3 |
|
return $this; |
212
|
|
|
} |
213
|
|
|
|
214
|
|
|
/** |
215
|
|
|
* Get the value of attivo. |
216
|
|
|
* |
217
|
|
|
* @return bool |
218
|
|
|
*/ |
219
|
2 |
|
public function getAttivo() |
220
|
|
|
{ |
221
|
2 |
|
return $this->attivo; |
222
|
|
|
} |
223
|
|
|
|
224
|
|
|
/** |
225
|
|
|
* Set the value of target. |
226
|
|
|
* |
227
|
|
|
* @param string $target |
228
|
|
|
* |
229
|
|
|
* @return \Cdf\BiCoreBundle\Entity\Menuapplicazione |
230
|
|
|
*/ |
231
|
1 |
|
public function setTarget($target) |
232
|
|
|
{ |
233
|
1 |
|
$this->target = $target; |
234
|
|
|
|
235
|
1 |
|
return $this; |
236
|
|
|
} |
237
|
|
|
|
238
|
|
|
/** |
239
|
|
|
* Get the value of target. |
240
|
|
|
* |
241
|
|
|
* @return string |
242
|
|
|
*/ |
243
|
12 |
|
public function getTarget() |
244
|
|
|
{ |
245
|
12 |
|
return $this->target; |
246
|
|
|
} |
247
|
|
|
|
248
|
|
|
/** |
249
|
|
|
* Set the value of tag. |
250
|
|
|
* |
251
|
|
|
* @param string $tag |
252
|
|
|
* |
253
|
|
|
* @return \Cdf\BiCoreBundle\Entity\Menuapplicazione |
254
|
|
|
*/ |
255
|
2 |
|
public function setTag($tag) |
256
|
|
|
{ |
257
|
2 |
|
$this->tag = $tag; |
258
|
|
|
|
259
|
2 |
|
return $this; |
260
|
|
|
} |
261
|
|
|
|
262
|
|
|
/** |
263
|
|
|
* Get the value of tag. |
264
|
|
|
* |
265
|
|
|
* @return string |
266
|
|
|
*/ |
267
|
12 |
|
public function getTag() |
268
|
|
|
{ |
269
|
12 |
|
return $this->tag; |
270
|
|
|
} |
271
|
|
|
|
272
|
|
|
/** |
273
|
|
|
* Set the value of notifiche. |
274
|
|
|
* |
275
|
|
|
* @param bool $notifiche |
276
|
|
|
* |
277
|
|
|
* @return \Cdf\BiCoreBundle\Entity\Menuapplicazione |
278
|
|
|
*/ |
279
|
3 |
|
public function setNotifiche($notifiche) |
280
|
|
|
{ |
281
|
3 |
|
$this->notifiche = $notifiche; |
282
|
|
|
|
283
|
3 |
|
return $this; |
284
|
|
|
} |
285
|
|
|
|
286
|
|
|
/** |
287
|
|
|
* Get the value of notifiche. |
288
|
|
|
* |
289
|
|
|
* @return bool |
290
|
|
|
*/ |
291
|
12 |
|
public function getNotifiche() |
292
|
|
|
{ |
293
|
12 |
|
return $this->notifiche; |
294
|
|
|
} |
295
|
|
|
|
296
|
|
|
/** |
297
|
|
|
* Set the value of autorizzazionerichiesta. |
298
|
|
|
* |
299
|
|
|
* @param bool $autorizzazionerichiesta |
300
|
|
|
* |
301
|
|
|
* @return \Cdf\BiCoreBundle\Entity\Menuapplicazione |
302
|
|
|
*/ |
303
|
3 |
|
public function setAutorizzazionerichiesta($autorizzazionerichiesta) |
304
|
|
|
{ |
305
|
3 |
|
$this->autorizzazionerichiesta = $autorizzazionerichiesta; |
306
|
|
|
|
307
|
3 |
|
return $this; |
308
|
|
|
} |
309
|
|
|
|
310
|
|
|
/** |
311
|
|
|
* Get the value of autorizzazionerichiesta. |
312
|
|
|
* |
313
|
|
|
* @return bool |
314
|
|
|
*/ |
315
|
12 |
|
public function getAutorizzazionerichiesta() |
316
|
|
|
{ |
317
|
12 |
|
return $this->autorizzazionerichiesta; |
318
|
|
|
} |
319
|
|
|
|
320
|
|
|
/** |
321
|
|
|
* Set the value of percorsonotifiche. |
322
|
|
|
* |
323
|
|
|
* @param string $percorsonotifiche |
324
|
|
|
* |
325
|
|
|
* @return \Cdf\BiCoreBundle\Entity\Menuapplicazione |
326
|
|
|
*/ |
327
|
|
|
public function setPercorsonotifiche($percorsonotifiche) |
328
|
|
|
{ |
329
|
|
|
$this->percorsonotifiche = $percorsonotifiche; |
330
|
|
|
|
331
|
|
|
return $this; |
332
|
|
|
} |
333
|
|
|
|
334
|
|
|
/** |
335
|
|
|
* Get the value of percorsonotifiche. |
336
|
|
|
* |
337
|
|
|
* @return string |
338
|
|
|
*/ |
339
|
12 |
|
public function getPercorsonotifiche() |
340
|
|
|
{ |
341
|
12 |
|
return $this->percorsonotifiche; |
342
|
|
|
} |
343
|
|
|
|
344
|
|
|
public function __sleep() |
345
|
|
|
{ |
346
|
|
|
return array('id', 'nome', 'percorso', 'padre', 'ordine', 'attivo', 'target', 'tag', 'notifiche', 'autorizzazionerichiesta', 'percorsonotifiche'); |
347
|
|
|
} |
348
|
|
|
} |
349
|
|
|
|