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
|
|
|
* Get id. |
52
|
|
|
* |
53
|
|
|
* @return int |
54
|
|
|
*/ |
55
|
6 |
|
public function getId() |
56
|
|
|
{ |
57
|
6 |
|
return $this->id; |
58
|
|
|
} |
59
|
|
|
|
60
|
|
|
/** |
61
|
|
|
* Set descsec. |
62
|
|
|
* |
63
|
|
|
* @param string $descsec |
64
|
|
|
* |
65
|
|
|
* @return ffsecondaria |
66
|
|
|
*/ |
67
|
5 |
|
public function setDescsec($descsec) |
68
|
|
|
{ |
69
|
5 |
|
$this->descsec = $descsec; |
70
|
|
|
|
71
|
5 |
|
return $this; |
72
|
|
|
} |
73
|
|
|
|
74
|
|
|
/** |
75
|
|
|
* Get descsec. |
76
|
|
|
* |
77
|
|
|
* @return string |
78
|
|
|
*/ |
79
|
5 |
|
public function getDescsec() |
80
|
|
|
{ |
81
|
5 |
|
return $this->descsec; |
82
|
|
|
} |
83
|
|
|
|
84
|
|
|
/** |
85
|
|
|
* Set ffprincipale_id. |
86
|
|
|
* |
87
|
|
|
* @param int $ffprincipaleId |
88
|
|
|
* |
89
|
|
|
* @return ffsecondaria |
90
|
|
|
*/ |
91
|
|
|
public function setFfprincipaleId($ffprincipaleId) |
92
|
|
|
{ |
93
|
|
|
$this->ffprincipale_id = $ffprincipaleId; |
94
|
|
|
|
95
|
|
|
return $this; |
96
|
|
|
} |
97
|
|
|
|
98
|
|
|
/** |
99
|
|
|
* Get ffprincipale_id. |
100
|
|
|
* |
101
|
|
|
* @return int |
102
|
|
|
*/ |
103
|
1 |
|
public function getFfprincipaleId() |
104
|
|
|
{ |
105
|
1 |
|
return $this->ffprincipale_id; |
106
|
|
|
} |
107
|
|
|
|
108
|
|
|
/** |
109
|
|
|
* Set ffprincipale. |
110
|
|
|
* |
111
|
|
|
* @param \Fi\CoreBundle\Entity\Ffprincipale $ffprincipale |
112
|
|
|
* |
113
|
|
|
* @return ffsecondaria |
114
|
|
|
*/ |
115
|
3 |
|
public function setFfprincipale(\Fi\CoreBundle\Entity\Ffprincipale $ffprincipale) |
116
|
|
|
{ |
117
|
3 |
|
$this->ffprincipale = $ffprincipale; |
118
|
|
|
|
119
|
3 |
|
return $this; |
120
|
|
|
} |
121
|
|
|
|
122
|
|
|
/** |
123
|
|
|
* Get ffprincipale. |
124
|
|
|
* |
125
|
|
|
* @return \Fi\CoreBundle\Entity\Ffprincipale |
126
|
|
|
*/ |
127
|
3 |
|
public function getFfprincipale() |
128
|
|
|
{ |
129
|
3 |
|
return $this->ffprincipale; |
130
|
|
|
} |
131
|
|
|
|
132
|
|
|
/** |
133
|
|
|
* Set data. |
134
|
|
|
* |
135
|
|
|
* @param \DateTime $data |
136
|
|
|
* |
137
|
|
|
* @return Ffsecondaria |
138
|
|
|
*/ |
139
|
5 |
|
public function setData($data) |
140
|
|
|
{ |
141
|
5 |
|
$this->data = $data; |
142
|
|
|
|
143
|
5 |
|
return $this; |
144
|
|
|
} |
145
|
|
|
|
146
|
|
|
/** |
147
|
|
|
* Get data. |
148
|
|
|
* |
149
|
|
|
* @return \DateTime |
150
|
|
|
*/ |
151
|
6 |
|
public function getData() |
152
|
|
|
{ |
153
|
6 |
|
return $this->data; |
154
|
|
|
} |
155
|
|
|
|
156
|
|
|
/** |
157
|
|
|
* Set importo. |
158
|
|
|
* |
159
|
|
|
* @param float $importo |
160
|
|
|
* |
161
|
|
|
* @return Ffsecondaria |
162
|
|
|
*/ |
163
|
3 |
|
public function setImporto($importo) |
164
|
|
|
{ |
165
|
3 |
|
$this->importo = $importo; |
166
|
|
|
|
167
|
3 |
|
return $this; |
168
|
|
|
} |
169
|
|
|
|
170
|
|
|
/** |
171
|
|
|
* Get importo. |
172
|
|
|
* |
173
|
|
|
* @return float |
174
|
|
|
*/ |
175
|
5 |
|
public function getImporto() |
176
|
|
|
{ |
177
|
5 |
|
return $this->importo; |
178
|
|
|
} |
179
|
|
|
|
180
|
|
|
/** |
181
|
|
|
* Set nota. |
182
|
|
|
* |
183
|
|
|
* @param string $nota |
184
|
|
|
* |
185
|
|
|
* @return Ffsecondaria |
186
|
|
|
*/ |
187
|
5 |
|
public function setNota($nota) |
188
|
|
|
{ |
189
|
5 |
|
$this->nota = $nota; |
190
|
|
|
|
191
|
5 |
|
return $this; |
192
|
|
|
} |
193
|
|
|
|
194
|
|
|
/** |
195
|
|
|
* Get nota. |
196
|
|
|
* |
197
|
|
|
* @return string |
198
|
|
|
*/ |
199
|
4 |
|
public function getNota() |
200
|
|
|
{ |
201
|
4 |
|
return $this->nota; |
202
|
|
|
} |
203
|
|
|
|
204
|
|
|
/** |
205
|
|
|
* Set attivo. |
206
|
|
|
* |
207
|
|
|
* @param bool $attivo |
208
|
|
|
* |
209
|
|
|
* @return Ffsecondaria |
210
|
|
|
*/ |
211
|
5 |
|
public function setAttivo($attivo) |
212
|
|
|
{ |
213
|
5 |
|
$this->attivo = $attivo; |
214
|
|
|
|
215
|
5 |
|
return $this; |
216
|
|
|
} |
217
|
|
|
|
218
|
|
|
/** |
219
|
|
|
* Get attivo. |
220
|
|
|
* |
221
|
|
|
* @return bool |
222
|
|
|
*/ |
223
|
5 |
|
public function isAttivo() |
224
|
|
|
{ |
225
|
5 |
|
return $this->attivo; |
226
|
|
|
} |
227
|
|
|
|
228
|
|
|
/** |
229
|
|
|
* @var int |
230
|
|
|
*/ |
231
|
|
|
private $intero; |
232
|
|
|
|
233
|
|
|
/** |
234
|
|
|
* Set intero. |
235
|
|
|
* |
236
|
|
|
* @param int $intero |
237
|
|
|
* |
238
|
|
|
* @return Ffsecondaria |
239
|
|
|
*/ |
240
|
5 |
|
public function setIntero($intero) |
241
|
|
|
{ |
242
|
5 |
|
$this->intero = $intero; |
243
|
|
|
|
244
|
5 |
|
return $this; |
245
|
|
|
} |
246
|
|
|
|
247
|
|
|
/** |
248
|
|
|
* Get intero. |
249
|
|
|
* |
250
|
|
|
* @return int |
251
|
|
|
*/ |
252
|
5 |
|
public function getIntero() |
253
|
|
|
{ |
254
|
5 |
|
return $this->intero; |
255
|
|
|
} |
256
|
|
|
|
257
|
|
|
/** |
258
|
|
|
* Get attivo to string. |
259
|
|
|
* |
260
|
|
|
* @return string |
261
|
|
|
*/ |
262
|
3 |
|
public function getAttivoToString() |
263
|
|
|
{ |
264
|
3 |
|
return $this->attivo ? 'SI' : 'NO'; |
265
|
|
|
} |
266
|
|
|
|
267
|
|
|
/** |
268
|
|
|
* Get intero. |
269
|
|
|
* |
270
|
|
|
* @return int |
271
|
|
|
*/ |
272
|
3 |
|
public function getLunghezzanota() |
273
|
|
|
{ |
274
|
3 |
|
return strlen($this->nota); |
275
|
|
|
} |
276
|
|
|
|
277
|
|
|
public function __toString() |
278
|
|
|
{ |
279
|
|
|
return $this->getDescsec(); |
280
|
|
|
} |
281
|
|
|
} |
282
|
|
|
|