Completed
Push — develop ( c4851e...e4d3d5 )
by Andrea
60:57
created

BaseColonnetabelle::getOperatoriId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 1
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
ccs 1
cts 1
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)
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)
59
     */
60
    protected $registrastorico;
61
62
    /**
63
     * @ORM\Column(type="integer", nullable=true)
64
     */
65
    protected $operatori_id;
66
67
    /**
68
     * @ORM\ManyToOne(targetEntity="Operatori", inversedBy="colonnetabelles")
69
     * @ORM\JoinColumn(name="operatori_id", referencedColumnName="id", nullable=false)
70
     */
71
    protected $operatori;
72
73
    public function __construct()
74
    {
75
        
76
    }
77
78
    /**
79
     * Set the value of id.
80
     *
81
     * @param integer $id
82
     * @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...
83
     */
84
    public function setId($id)
85
    {
86
        $this->id = $id;
87 4
88
        return $this;
89 4
    }
90
91
    /**
92
     * Get the value of id.
93
     *
94
     * @return integer
95
     */
96
    public function getId()
97
    {
98
        return $this->id;
99
    }
100
101
    /**
102
     * Set the value of nometabella.
103
     *
104
     * @param string $nometabella
105
     * @return \Cdf\BiCoreBundle\Colonnetabelle
106
     */
107
    public function setNometabella($nometabella)
108
    {
109 3
        $this->nometabella = $nometabella;
110
111 3
        return $this;
112
    }
113
114
    /**
115
     * Get the value of nometabella.
116
     *
117
     * @return string
118
     */
119
    public function getNometabella()
120 4
    {
121
        return $this->nometabella;
122 4
    }
123
124 4
    /**
125
     * Set the value of nomecampo.
126
     *
127
     * @param string $nomecampo
128
     * @return \Cdf\BiCoreBundle\Colonnetabelle
129
     */
130
    public function setNomecampo($nomecampo)
131
    {
132 5
        $this->nomecampo = $nomecampo;
133
134 5
        return $this;
135
    }
136
137
    /**
138
     * Get the value of nomecampo.
139
     *
140
     * @return string
141
     */
142
    public function getNomecampo()
143 2
    {
144
        return $this->nomecampo;
145 2
    }
146
147 2
    /**
148
     * Set the value of mostraindex.
149
     *
150
     * @param boolean $mostraindex
151
     * @return \Cdf\BiCoreBundle\Colonnetabelle
152
     */
153
    public function setMostraindex($mostraindex)
154
    {
155 5
        $this->mostraindex = $mostraindex;
156
157 5
        return $this;
158
    }
159
160
    /**
161
     * Get the value of mostraindex.
162
     *
163
     * @return boolean
164
     */
165
    public function getMostraindex()
166 3
    {
167
        return $this->mostraindex;
168 3
    }
169
170 3
    /**
171
     * Set the value of ordineindex.
172
     *
173
     * @param integer $ordineindex
174
     * @return \Cdf\BiCoreBundle\Colonnetabelle
175
     */
176
    public function setOrdineindex($ordineindex)
177
    {
178 4
        $this->ordineindex = $ordineindex;
179
180 4
        return $this;
181
    }
182
183
    /**
184
     * Get the value of ordineindex.
185
     *
186
     * @return integer
187
     */
188
    public function getOrdineindex()
189 2
    {
190
        return $this->ordineindex;
191 2
    }
192
193 2
    /**
194
     * Set the value of larghezzaindex.
195
     *
196
     * @param integer $larghezzaindex
197
     * @return \Cdf\BiCoreBundle\Colonnetabelle
198
     */
199
    public function setLarghezzaindex($larghezzaindex)
200
    {
201 5
        $this->larghezzaindex = $larghezzaindex;
202
203 5
        return $this;
204
    }
205
206
    /**
207
     * Get the value of larghezzaindex.
208
     *
209
     * @return integer
210
     */
211
    public function getLarghezzaindex()
212 2
    {
213
        return $this->larghezzaindex;
214 2
    }
215
216 2
    /**
217
     * Set the value of etichettaindex.
218
     *
219
     * @param string $etichettaindex
220
     * @return \Cdf\BiCoreBundle\Colonnetabelle
221
     */
222
    public function setEtichettaindex($etichettaindex)
223
    {
224 5
        $this->etichettaindex = $etichettaindex;
225
226 5
        return $this;
227
    }
228
229
    /**
230
     * Get the value of etichettaindex.
231
     *
232
     * @return string
233
     */
234
    public function getEtichettaindex()
235 2
    {
236
        return $this->etichettaindex;
237 2
    }
238
239 2
    /**
240
     * Set the value of registrastorico.
241
     *
242
     * @param boolean $registrastorico
243
     * @return \Cdf\BiCoreBundle\Colonnetabelle
244
     */
245
    public function setRegistrastorico($registrastorico)
246
    {
247 5
        $this->registrastorico = $registrastorico;
248
249 5
        return $this;
250
    }
251
252
    /**
253
     * Get the value of registrastorico.
254
     *
255
     * @return boolean
256
     */
257
    public function getRegistrastorico()
258 3
    {
259
        return $this->registrastorico;
260 3
    }
261
262 3
    /**
263
     * Set the value of operatori_id.
264
     *
265
     * @param integer $operatori_id
266
     * @return \Cdf\BiCoreBundle\Colonnetabelle
267
     */
268
    public function setOperatoriId($operatori_id)
269
    {
270 1
        $this->operatori_id = $operatori_id;
271
272 1
        return $this;
273
    }
274
275
    /**
276
     * Get the value of operatori_id.
277
     *
278
     * @return integer
279
     */
280
    public function getOperatoriId()
281 2
    {
282
        return $this->operatori_id;
283 2
    }
284
285 2
    /**
286
     * Set Operatori entity (many to one).
287
     *
288
     * @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...
289
     * @return \Cdf\BiCoreBundle\Colonnetabelle
290
     */
291
    public function setOperatori(Operatori $operatori = null)
292
    {
293 2
        $this->operatori = $operatori;
294
295 2
        return $this;
296
    }
297
298
    /**
299
     * Get Operatori entity (many to one).
300
     *
301
     * @return \Cdf\BiCoreBundle\Operatori
302
     */
303
    public function getOperatori()
304 2
    {
305
        return $this->operatori;
306 2
    }
307
308 2
    public function __sleep()
309
    {
310
        return array('id', 'nometabella', 'nomecampo', 'mostraindex', 'ordineindex', 'larghezzaindex', 'etichettaindex', 'registrastorico', 'operatori_id');
311
    }
312
313
}
314