1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace Fi\CoreBundle\Entity; |
4
|
|
|
|
5
|
|
|
/** |
6
|
|
|
* Ffsecondaria. |
7
|
|
|
*/ |
8
|
|
|
class Ffsecondaria |
9
|
|
|
{ |
10
|
|
|
/** |
11
|
|
|
* @var int |
12
|
|
|
*/ |
13
|
|
|
private $id; |
14
|
|
|
|
15
|
|
|
/** |
16
|
|
|
* @var string |
17
|
|
|
*/ |
18
|
|
|
private $descsec; |
19
|
|
|
|
20
|
|
|
/** |
21
|
|
|
* @var int |
22
|
|
|
*/ |
23
|
|
|
private $ffprincipale_id; |
24
|
|
|
|
25
|
|
|
/** |
26
|
|
|
* @var \Fi\CoreBundle\Entity\Ffprincipale |
27
|
|
|
*/ |
28
|
|
|
private $ffprincipale; |
29
|
|
|
|
30
|
|
|
/** |
31
|
|
|
* @var \DateTime |
32
|
|
|
*/ |
33
|
|
|
private $data; |
34
|
|
|
|
35
|
|
|
/** |
36
|
|
|
* @var float |
37
|
|
|
*/ |
38
|
|
|
private $importo; |
39
|
|
|
|
40
|
|
|
/** |
41
|
|
|
* @var string |
42
|
|
|
*/ |
43
|
|
|
private $nota; |
44
|
|
|
|
45
|
|
|
/** |
46
|
|
|
* @var bool |
47
|
|
|
*/ |
48
|
|
|
private $attivo; |
49
|
|
|
|
50
|
|
|
/** |
51
|
|
|
* @var int |
52
|
|
|
*/ |
53
|
|
|
private $giornodellasettimana; |
54
|
|
|
|
55
|
|
|
/** |
56
|
|
|
* Get id. |
57
|
|
|
* |
58
|
|
|
* @return int |
59
|
|
|
*/ |
60
|
6 |
|
public function getId() |
61
|
|
|
{ |
62
|
6 |
|
return $this->id; |
63
|
|
|
} |
64
|
|
|
|
65
|
|
|
/** |
66
|
|
|
* Set descsec. |
67
|
|
|
* |
68
|
|
|
* @param string $descsec |
69
|
|
|
* |
70
|
|
|
* @return ffsecondaria |
71
|
|
|
*/ |
72
|
5 |
|
public function setDescsec($descsec) |
73
|
|
|
{ |
74
|
5 |
|
$this->descsec = $descsec; |
75
|
|
|
|
76
|
5 |
|
return $this; |
77
|
|
|
} |
78
|
|
|
|
79
|
|
|
/** |
80
|
|
|
* Get descsec. |
81
|
|
|
* |
82
|
|
|
* @return string |
83
|
|
|
*/ |
84
|
5 |
|
public function getDescsec() |
85
|
|
|
{ |
86
|
5 |
|
return $this->descsec; |
87
|
|
|
} |
88
|
|
|
|
89
|
|
|
/** |
90
|
|
|
* Set ffprincipale_id. |
91
|
|
|
* |
92
|
|
|
* @param int $ffprincipaleId |
93
|
|
|
* |
94
|
|
|
* @return ffsecondaria |
95
|
|
|
*/ |
96
|
|
|
public function setFfprincipaleId($ffprincipaleId) |
97
|
|
|
{ |
98
|
|
|
$this->ffprincipale_id = $ffprincipaleId; |
99
|
|
|
|
100
|
|
|
return $this; |
101
|
|
|
} |
102
|
|
|
|
103
|
|
|
/** |
104
|
|
|
* Get ffprincipale_id. |
105
|
|
|
* |
106
|
|
|
* @return int |
107
|
|
|
*/ |
108
|
1 |
|
public function getFfprincipaleId() |
109
|
|
|
{ |
110
|
1 |
|
return $this->ffprincipale_id; |
111
|
|
|
} |
112
|
|
|
|
113
|
|
|
/** |
114
|
|
|
* Set ffprincipale. |
115
|
|
|
* |
116
|
|
|
* @param \Fi\CoreBundle\Entity\Ffprincipale $ffprincipale |
117
|
|
|
* |
118
|
|
|
* @return ffsecondaria |
119
|
|
|
*/ |
120
|
3 |
|
public function setFfprincipale(\Fi\CoreBundle\Entity\Ffprincipale $ffprincipale) |
121
|
|
|
{ |
122
|
3 |
|
$this->ffprincipale = $ffprincipale; |
123
|
|
|
|
124
|
3 |
|
return $this; |
125
|
|
|
} |
126
|
|
|
|
127
|
|
|
/** |
128
|
|
|
* Get ffprincipale. |
129
|
|
|
* |
130
|
|
|
* @return \Fi\CoreBundle\Entity\Ffprincipale |
131
|
|
|
*/ |
132
|
3 |
|
public function getFfprincipale() |
133
|
|
|
{ |
134
|
3 |
|
return $this->ffprincipale; |
135
|
|
|
} |
136
|
|
|
|
137
|
|
|
/** |
138
|
|
|
* Set data. |
139
|
|
|
* |
140
|
|
|
* @param \DateTime $data |
141
|
|
|
* |
142
|
|
|
* @return Ffsecondaria |
143
|
|
|
*/ |
144
|
5 |
|
public function setData($data) |
145
|
|
|
{ |
146
|
5 |
|
$this->data = $data; |
147
|
|
|
|
148
|
5 |
|
return $this; |
149
|
|
|
} |
150
|
|
|
|
151
|
|
|
/** |
152
|
|
|
* Get data. |
153
|
|
|
* |
154
|
|
|
* @return \DateTime |
155
|
|
|
*/ |
156
|
6 |
|
public function getData() |
157
|
|
|
{ |
158
|
6 |
|
return $this->data; |
159
|
|
|
} |
160
|
|
|
|
161
|
|
|
/** |
162
|
|
|
* Set importo. |
163
|
|
|
* |
164
|
|
|
* @param float $importo |
165
|
|
|
* |
166
|
|
|
* @return Ffsecondaria |
167
|
|
|
*/ |
168
|
3 |
|
public function setImporto($importo) |
169
|
|
|
{ |
170
|
3 |
|
$this->importo = $importo; |
171
|
|
|
|
172
|
3 |
|
return $this; |
173
|
|
|
} |
174
|
|
|
|
175
|
|
|
/** |
176
|
|
|
* Get importo. |
177
|
|
|
* |
178
|
|
|
* @return float |
179
|
|
|
*/ |
180
|
5 |
|
public function getImporto() |
181
|
|
|
{ |
182
|
5 |
|
return $this->importo; |
183
|
|
|
} |
184
|
|
|
|
185
|
|
|
/** |
186
|
|
|
* Set nota. |
187
|
|
|
* |
188
|
|
|
* @param string $nota |
189
|
|
|
* |
190
|
|
|
* @return Ffsecondaria |
191
|
|
|
*/ |
192
|
5 |
|
public function setNota($nota) |
193
|
|
|
{ |
194
|
5 |
|
$this->nota = $nota; |
195
|
|
|
|
196
|
5 |
|
return $this; |
197
|
|
|
} |
198
|
|
|
|
199
|
|
|
/** |
200
|
|
|
* Get nota. |
201
|
|
|
* |
202
|
|
|
* @return string |
203
|
|
|
*/ |
204
|
4 |
|
public function getNota() |
205
|
|
|
{ |
206
|
4 |
|
return $this->nota; |
207
|
|
|
} |
208
|
|
|
|
209
|
|
|
/** |
210
|
|
|
* Set attivo. |
211
|
|
|
* |
212
|
|
|
* @param bool $attivo |
213
|
|
|
* |
214
|
|
|
* @return Ffsecondaria |
215
|
|
|
*/ |
216
|
5 |
|
public function setAttivo($attivo) |
217
|
|
|
{ |
218
|
5 |
|
$this->attivo = $attivo; |
219
|
|
|
|
220
|
5 |
|
return $this; |
221
|
|
|
} |
222
|
|
|
|
223
|
|
|
/** |
224
|
|
|
* Get attivo. |
225
|
|
|
* |
226
|
|
|
* @return bool |
227
|
|
|
*/ |
228
|
5 |
|
public function isAttivo() |
229
|
|
|
{ |
230
|
5 |
|
return $this->attivo; |
231
|
|
|
} |
232
|
|
|
|
233
|
|
|
/** |
234
|
|
|
* @var int |
235
|
|
|
*/ |
236
|
|
|
private $intero; |
237
|
|
|
|
238
|
|
|
/** |
239
|
|
|
* Set intero. |
240
|
|
|
* |
241
|
|
|
* @param int $intero |
242
|
|
|
* |
243
|
|
|
* @return Ffsecondaria |
244
|
|
|
*/ |
245
|
5 |
|
public function setIntero($intero) |
246
|
|
|
{ |
247
|
5 |
|
$this->intero = $intero; |
248
|
|
|
|
249
|
5 |
|
return $this; |
250
|
|
|
} |
251
|
|
|
|
252
|
|
|
/** |
253
|
|
|
* Set giornodellasettimana. |
254
|
|
|
* |
255
|
|
|
* @param int $giornodellasettimana |
256
|
|
|
* |
257
|
|
|
* @return Ffsecondaria |
258
|
|
|
*/ |
259
|
2 |
|
public function setGiornodellasettimana($giornodellasettimana) |
260
|
|
|
{ |
261
|
2 |
|
$this->giornodellasettimana = $giornodellasettimana; |
262
|
|
|
|
263
|
2 |
|
return $this; |
264
|
|
|
} |
265
|
|
|
|
266
|
|
|
/** |
267
|
|
|
* Get intero. |
268
|
|
|
* |
269
|
|
|
* @return int |
270
|
|
|
*/ |
271
|
5 |
|
public function getIntero() |
272
|
|
|
{ |
273
|
5 |
|
return $this->intero; |
274
|
|
|
} |
275
|
|
|
|
276
|
|
|
/** |
277
|
|
|
* Get giornodellasettimana. |
278
|
|
|
* |
279
|
|
|
* @return int |
280
|
|
|
*/ |
281
|
5 |
|
public function getGiornodellasettimana() |
282
|
|
|
{ |
283
|
5 |
|
return $this->giornodellasettimana; |
284
|
|
|
} |
285
|
|
|
|
286
|
|
|
/** |
287
|
|
|
* Get attivo to string. |
288
|
|
|
* |
289
|
|
|
* @return string |
290
|
|
|
*/ |
291
|
3 |
|
public function getAttivoToString() |
292
|
|
|
{ |
293
|
3 |
|
return $this->attivo ? 'SI' : 'NO'; |
294
|
|
|
} |
295
|
|
|
|
296
|
|
|
/** |
297
|
|
|
* Get intero. |
298
|
|
|
* |
299
|
|
|
* @return int |
300
|
|
|
*/ |
301
|
3 |
|
public function getLunghezzanota() |
302
|
|
|
{ |
303
|
3 |
|
return strlen($this->nota); |
304
|
|
|
} |
305
|
|
|
|
306
|
|
|
public function __toString() |
307
|
|
|
{ |
308
|
|
|
return $this->getDescsec(); |
309
|
|
|
} |
310
|
|
|
} |
311
|
|
|
|