Passed
Push — master ( ec8aec...410d42 )
by Andrea
15:53
created

BaseColonnetabelle::getMostrastampa()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Cdf\BiCoreBundle\Entity;
4
5
use Doctrine\ORM\Mapping as ORM;
6
7
/**
8
 * Cdf\BiCoreBundle\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
    /**
21
     * @ORM\Id
22
     * @ORM\Column(type="integer")
23
     * @ORM\GeneratedValue(strategy="AUTO")
24
     */
25
    protected $id;
26
27
    /**
28
     * @ORM\Column(type="string", length=45, nullable=true)
29
     */
30
    protected $nometabella;
31
32
    /**
33
     * @ORM\Column(type="string", length=45, nullable=true)
34
     */
35
    protected $nomecampo;
36
37
    /**
38
     * @ORM\Column(type="boolean", nullable=true, options={"default":true})
39
     */
40
    protected $mostraindex;
41
42
    /**
43
     * @ORM\Column(type="integer", nullable=true)
44
     */
45
    protected $ordineindex;
46
47
    /**
48
     * @ORM\Column(type="integer", nullable=true)
49
     */
50
    protected $larghezzaindex;
51
52
    /**
53
     * @ORM\Column(type="string", length=255, nullable=true)
54
     */
55
    protected $etichettaindex;
56
57
    /**
58
     * @ORM\Column(type="boolean", nullable=true, options={"default":false})
59
     */
60
    protected $registrastorico;
61
62
    /**
63
     * @ORM\Column(type="boolean", nullable=true, options={"default":true})
64
     */
65
    protected $editabile;
66
67
    /**
68
     * @ORM\Column(type="integer", nullable=true)
69
     */
70
    protected $operatori_id;
71
72
    /**
73
     * @ORM\ManyToOne(targetEntity="Operatori", inversedBy="colonnetabelles")
74
     * @ORM\JoinColumn(name="operatori_id", referencedColumnName="id", nullable=false)
75
     */
76
    protected $operatori;
77
78 4
    public function __construct()
79
    {
80 4
    }
81
82
    /**
83
     * Set the value of id.
84
     *
85
     * @param integer $id
86
     * @return \Cdf\BiCoreBundle\Colonnetabelle
0 ignored issues
show
Bug introduced by
The type Cdf\BiCoreBundle\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...
87
     */
88
    public function setId($id)
89
    {
90
        $this->id = $id;
91
92
        return $this;
93
    }
94
95
    /**
96
     * Get the value of id.
97
     *
98
     * @return integer
99
     */
100 3
    public function getId()
101
    {
102 3
        return $this->id;
103
    }
104
105
    /**
106
     * Set the value of nometabella.
107
     *
108
     * @param string $nometabella
109
     * @return \Cdf\BiCoreBundle\Colonnetabelle
110
     */
111 4
    public function setNometabella($nometabella)
112
    {
113 4
        $this->nometabella = $nometabella;
114
115 4
        return $this;
116
    }
117
118
    /**
119
     * Get the value of nometabella.
120
     *
121
     * @return string
122
     */
123 5
    public function getNometabella()
124
    {
125 5
        return $this->nometabella;
126
    }
127
128
    /**
129
     * Set the value of nomecampo.
130
     *
131
     * @param string $nomecampo
132
     * @return \Cdf\BiCoreBundle\Colonnetabelle
133
     */
134 2
    public function setNomecampo($nomecampo)
135
    {
136 2
        $this->nomecampo = $nomecampo;
137
138 2
        return $this;
139
    }
140
141
    /**
142
     * Get the value of nomecampo.
143
     *
144
     * @return string
145
     */
146 5
    public function getNomecampo()
147
    {
148 5
        return $this->nomecampo;
149
    }
150
151
    /**
152
     * Set the value of mostraindex.
153
     *
154
     * @param boolean $mostraindex
155
     * @return \Cdf\BiCoreBundle\Colonnetabelle
156
     */
157 3
    public function setMostraindex($mostraindex)
158
    {
159 3
        $this->mostraindex = $mostraindex;
160
161 3
        return $this;
162
    }
163
164
    /**
165
     * Get the value of mostraindex.
166
     *
167
     * @return boolean
168
     */
169 4
    public function getMostraindex()
170
    {
171 4
        return $this->mostraindex;
172
    }
173
174
    /**
175
     * Set the value of ordineindex.
176
     *
177
     * @param integer $ordineindex
178
     * @return \Cdf\BiCoreBundle\Colonnetabelle
179
     */
180 2
    public function setOrdineindex($ordineindex)
181
    {
182 2
        $this->ordineindex = $ordineindex;
183
184 2
        return $this;
185
    }
186
187
    /**
188
     * Get the value of ordineindex.
189
     *
190
     * @return integer
191
     */
192 5
    public function getOrdineindex()
193
    {
194 5
        return $this->ordineindex;
195
    }
196
197
    /**
198
     * Set the value of larghezzaindex.
199
     *
200
     * @param integer $larghezzaindex
201
     * @return \Cdf\BiCoreBundle\Colonnetabelle
202
     */
203 2
    public function setLarghezzaindex($larghezzaindex)
204
    {
205 2
        $this->larghezzaindex = $larghezzaindex;
206
207 2
        return $this;
208
    }
209
210
    /**
211
     * Get the value of larghezzaindex.
212
     *
213
     * @return integer
214
     */
215 5
    public function getLarghezzaindex()
216
    {
217 5
        return $this->larghezzaindex;
218
    }
219
220
    /**
221
     * Set the value of etichettaindex.
222
     *
223
     * @param string $etichettaindex
224
     * @return \Cdf\BiCoreBundle\Colonnetabelle
225
     */
226 2
    public function setEtichettaindex($etichettaindex)
227
    {
228 2
        $this->etichettaindex = $etichettaindex;
229
230 2
        return $this;
231
    }
232
233
    /**
234
     * Get the value of etichettaindex.
235
     *
236
     * @return string
237
     */
238 5
    public function getEtichettaindex()
239
    {
240 5
        return $this->etichettaindex;
241
    }
242
243
    /**
244
     * Set the value of registrastorico.
245
     *
246
     * @param boolean $registrastorico
247
     * @return \Cdf\BiCoreBundle\Colonnetabelle
248
     */
249 3
    public function setRegistrastorico($registrastorico)
250
    {
251 3
        $this->registrastorico = $registrastorico;
252
253 3
        return $this;
254
    }
255
256
    /**
257
     * Get the value of registrastorico.
258
     *
259
     * @return boolean
260
     */
261 4
    public function getRegistrastorico()
262
    {
263 4
        return $this->registrastorico;
264
    }
265
266
    /**
267
     * Set the value of editabile.
268
     *
269
     * @param boolean $editabile
270
     * @return \Cdf\BiCoreBundle\Colonnetabelle
271
     */
272 3
    public function setEditabile($editabile)
273
    {
274 3
        $this->editabile = $editabile;
275
276 3
        return $this;
277
    }
278
279
    /**
280
     * Get the value of editabile.
281
     *
282
     * @return boolean
283
     */
284 5
    public function getEditabile()
285
    {
286 5
        return $this->editabile;
287
    }
288
289
    /**
290
     * Set the value of operatori_id.
291
     *
292
     * @param integer $operatori_id
293
     * @return \Cdf\BiCoreBundle\Colonnetabelle
294
     */
295
    public function setOperatoriId($operatori_id)
296
    {
297
        $this->operatori_id = $operatori_id;
298
299
        return $this;
300
    }
301
302
    /**
303
     * Get the value of operatori_id.
304
     *
305
     * @return integer
306
     */
307 1
    public function getOperatoriId()
308
    {
309 1
        return $this->operatori_id;
310
    }
311
312
    /**
313
     * Set Operatori entity (many to one).
314
     *
315
     * @param \Cdf\BiCoreBundle\Operatori $operatori
0 ignored issues
show
Bug introduced by
The type Cdf\BiCoreBundle\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...
316
     * @return \Cdf\BiCoreBundle\Colonnetabelle
317
     */
318
    public function setOperatori(Operatori $operatori = null)
319
    {
320
        $this->operatori = $operatori;
321
322
        return $this;
323
    }
324
325
    /**
326
     * Get Operatori entity (many to one).
327
     *
328
     * @return \Cdf\BiCoreBundle\Operatori
329
     */
330 1
    public function getOperatori()
331
    {
332 1
        return $this->operatori;
333
    }
334
335
    public function __sleep()
336
    {
337
        return array('id', 'nometabella', 'nomecampo', 'mostraindex', 'ordineindex', 'larghezzaindex', 'etichettaindex', 'editabile', 'registrastorico', 'operatori_id');
338
    }
339
}
340