Passed
Push — 4.1 ( 891fe2...92a355 )
by Andrea
13:05
created

BaseColonnetabelle::__sleep()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
ccs 0
cts 2
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 2
1
<?php
2
3
namespace Fi\CoreBundle\Entity;
4
5
use Doctrine\ORM\Mapping as ORM;
6
7
/**
8
 * Fi\CoreBundle\Entity\Colonnetabelle
9
 *
10
 * @ORM\Entity()
11
 * @ORM\Table(name="Colonnetabelle", indexes={@ORM\Index(name="fk_Colonnetabelle_Operatori1_idx", columns={"operatori_id"})})
12
 * @ORM\InheritanceType("SINGLE_TABLE")
13
 * @ORM\DiscriminatorColumn(name="discr", type="string")
14
 * @ORM\DiscriminatorMap({"base":"BaseColonnetabelle", "extended":"Colonnetabelle"})
15
 * @SuppressWarnings(PHPMD)
16
 */
17
class BaseColonnetabelle
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=45, nullable=true)
28
     */
29
    protected $nometabella;
30
31
    /**
32
     * @ORM\Column(type="string", length=45, nullable=true)
33
     */
34
    protected $nomecampo;
35
36
    /**
37
     * @ORM\Column(type="boolean", nullable=true)
38
     */
39
    protected $mostraindex;
40
41
    /**
42
     * @ORM\Column(type="integer", nullable=true)
43
     */
44
    protected $ordineindex;
45
46
    /**
47
     * @ORM\Column(type="integer", nullable=true)
48
     */
49
    protected $larghezzaindex;
50
51
    /**
52
     * @ORM\Column(type="string", length=255, nullable=true)
53
     */
54
    protected $etichettaindex;
55
56
    /**
57
     * @ORM\Column(type="boolean", nullable=true)
58
     */
59
    protected $mostrastampa;
60
61
    /**
62
     * @ORM\Column(type="integer", nullable=true)
63
     */
64
    protected $ordinestampa;
65
66
    /**
67
     * @ORM\Column(type="integer", nullable=true)
68
     */
69
    protected $larghezzastampa;
70
71
    /**
72
     * @ORM\Column(type="boolean", nullable=true)
73
     */
74
    protected $registrastorico;
75
76
    /**
77
     * @ORM\Column(type="integer", nullable=true)
78
     */
79
    protected $operatori_id;
80
81
    /**
82
     * @ORM\ManyToOne(targetEntity="Operatori", inversedBy="colonnetabelles")
83
     * @ORM\JoinColumn(name="operatori_id", referencedColumnName="id", nullable=false)
84
     */
85
    protected $operatori;
86
87 3
    public function __construct()
88
    {
89 3
    }
90
91
    /**
92
     * Set the value of id.
93
     *
94
     * @param integer $id
95
     * @return \Fi\CoreBundle\Colonnetabelle
0 ignored issues
show
Bug introduced by
The type Fi\CoreBundle\Colonnetabelle was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
96
     */
97
    public function setId($id)
98
    {
99
        $this->id = $id;
100
101
        return $this;
102
    }
103
104
    /**
105
     * Get the value of id.
106
     *
107
     * @return integer
108
     */
109 2
    public function getId()
110
    {
111 2
        return $this->id;
112
    }
113
114
    /**
115
     * Set the value of nometabella.
116
     *
117
     * @param string $nometabella
118
     * @return \Fi\CoreBundle\Colonnetabelle
119
     */
120 3
    public function setNometabella($nometabella)
121
    {
122 3
        $this->nometabella = $nometabella;
123
124 3
        return $this;
125
    }
126
127
    /**
128
     * Get the value of nometabella.
129
     *
130
     * @return string
131
     */
132 5
    public function getNometabella()
133
    {
134 5
        return $this->nometabella;
135
    }
136
137
    /**
138
     * Set the value of nomecampo.
139
     *
140
     * @param string $nomecampo
141
     * @return \Fi\CoreBundle\Colonnetabelle
142
     */
143 1
    public function setNomecampo($nomecampo)
144
    {
145 1
        $this->nomecampo = $nomecampo;
146
147 1
        return $this;
148
    }
149
150
    /**
151
     * Get the value of nomecampo.
152
     *
153
     * @return string
154
     */
155 5
    public function getNomecampo()
156
    {
157 5
        return $this->nomecampo;
158
    }
159
160
    /**
161
     * Set the value of mostraindex.
162
     *
163
     * @param boolean $mostraindex
164
     * @return \Fi\CoreBundle\Colonnetabelle
165
     */
166 2
    public function setMostraindex($mostraindex)
167
    {
168 2
        $this->mostraindex = $mostraindex;
169
170 2
        return $this;
171
    }
172
173
    /**
174
     * Get the value of mostraindex.
175
     *
176
     * @return boolean
177
     */
178 4
    public function getMostraindex()
179
    {
180 4
        return $this->mostraindex;
181
    }
182
183
    /**
184
     * Set the value of ordineindex.
185
     *
186
     * @param integer $ordineindex
187
     * @return \Fi\CoreBundle\Colonnetabelle
188
     */
189 1
    public function setOrdineindex($ordineindex)
190
    {
191 1
        $this->ordineindex = $ordineindex;
192
193 1
        return $this;
194
    }
195
196
    /**
197
     * Get the value of ordineindex.
198
     *
199
     * @return integer
200
     */
201 5
    public function getOrdineindex()
202
    {
203 5
        return $this->ordineindex;
204
    }
205
206
    /**
207
     * Set the value of larghezzaindex.
208
     *
209
     * @param integer $larghezzaindex
210
     * @return \Fi\CoreBundle\Colonnetabelle
211
     */
212 1
    public function setLarghezzaindex($larghezzaindex)
213
    {
214 1
        $this->larghezzaindex = $larghezzaindex;
215
216 1
        return $this;
217
    }
218
219
    /**
220
     * Get the value of larghezzaindex.
221
     *
222
     * @return integer
223
     */
224 5
    public function getLarghezzaindex()
225
    {
226 5
        return $this->larghezzaindex;
227
    }
228
229
    /**
230
     * Set the value of etichettaindex.
231
     *
232
     * @param string $etichettaindex
233
     * @return \Fi\CoreBundle\Colonnetabelle
234
     */
235 1
    public function setEtichettaindex($etichettaindex)
236
    {
237 1
        $this->etichettaindex = $etichettaindex;
238
239 1
        return $this;
240
    }
241
242
    /**
243
     * Get the value of etichettaindex.
244
     *
245
     * @return string
246
     */
247 5
    public function getEtichettaindex()
248
    {
249 5
        return $this->etichettaindex;
250
    }
251
252
    /**
253
     * Set the value of mostrastampa.
254
     *
255
     * @param boolean $mostrastampa
256
     * @return \Fi\CoreBundle\Colonnetabelle
257
     */
258 2
    public function setMostrastampa($mostrastampa)
259
    {
260 2
        $this->mostrastampa = $mostrastampa;
261
262 2
        return $this;
263
    }
264
265
    /**
266
     * Get the value of mostrastampa.
267
     *
268
     * @return boolean
269
     */
270 1
    public function getMostrastampa()
271
    {
272 1
        return $this->mostrastampa;
273
    }
274
275
    /**
276
     * Set the value of ordinestampa.
277
     *
278
     * @param integer $ordinestampa
279
     * @return \Fi\CoreBundle\Colonnetabelle
280
     */
281 1
    public function setOrdinestampa($ordinestampa)
282
    {
283 1
        $this->ordinestampa = $ordinestampa;
284
285 1
        return $this;
286
    }
287
288
    /**
289
     * Get the value of ordinestampa.
290
     *
291
     * @return integer
292
     */
293 2
    public function getOrdinestampa()
294
    {
295 2
        return $this->ordinestampa;
296
    }
297
298
    /**
299
     * Set the value of larghezzastampa.
300
     *
301
     * @param integer $larghezzastampa
302
     * @return \Fi\CoreBundle\Colonnetabelle
303
     */
304 1
    public function setLarghezzastampa($larghezzastampa)
305
    {
306 1
        $this->larghezzastampa = $larghezzastampa;
307
308 1
        return $this;
309
    }
310
311
    /**
312
     * Get the value of larghezzastampa.
313
     *
314
     * @return integer
315
     */
316 2
    public function getLarghezzastampa()
317
    {
318 2
        return $this->larghezzastampa;
319
    }
320
321
    /**
322
     * Set the value of registrastorico.
323
     *
324
     * @param boolean $registrastorico
325
     * @return \Fi\CoreBundle\Colonnetabelle
326
     */
327 2
    public function setRegistrastorico($registrastorico)
328
    {
329 2
        $this->registrastorico = $registrastorico;
330
331 2
        return $this;
332
    }
333
334
    /**
335
     * Get the value of registrastorico.
336
     *
337
     * @return boolean
338
     */
339 4
    public function getRegistrastorico()
340
    {
341 4
        return $this->registrastorico;
342
    }
343
344
    /**
345
     * Set the value of operatori_id.
346
     *
347
     * @param integer $operatori_id
348
     * @return \Fi\CoreBundle\Colonnetabelle
349
     */
350
    public function setOperatoriId($operatori_id)
351
    {
352
        $this->operatori_id = $operatori_id;
353
354
        return $this;
355
    }
356
357
    /**
358
     * Get the value of operatori_id.
359
     *
360
     * @return integer
361
     */
362 1
    public function getOperatoriId()
363
    {
364 1
        return $this->operatori_id;
365
    }
366
367
    /**
368
     * Set Operatori entity (many to one).
369
     *
370
     * @param \Fi\CoreBundle\Operatori $operatori
0 ignored issues
show
Bug introduced by
The type Fi\CoreBundle\Operatori was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
371
     * @return \Fi\CoreBundle\Colonnetabelle
372
     */
373
    public function setOperatori(Operatori $operatori = null)
374
    {
375
        $this->operatori = $operatori;
376
377
        return $this;
378
    }
379
380
    /**
381
     * Get Operatori entity (many to one).
382
     *
383
     * @return \Fi\CoreBundle\Operatori
384
     */
385 1
    public function getOperatori()
386
    {
387 1
        return $this->operatori;
388
    }
389
390
    public function __sleep()
391
    {
392
        return array('id', 'nometabella', 'nomecampo', 'mostraindex', 'ordineindex', 'larghezzaindex', 'etichettaindex', 'mostrastampa', 'ordinestampa', 'larghezzastampa', 'registrastorico', 'operatori_id');
393
    }
394
}
395