BaseStoricomodifiche   A
last analyzed

Complexity

Total Complexity 18

Size/Duplication

Total Lines 244
Duplicated Lines 0 %

Test Coverage

Coverage 63.64%

Importance

Changes 1
Bugs 1 Features 0
Metric Value
eloc 34
dl 0
loc 244
ccs 28
cts 44
cp 0.6364
rs 10
c 1
b 1
f 0
wmc 18

18 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 2 1
A getNometabella() 0 3 1
A getIdtabella() 0 3 1
A setOperatoriId() 0 5 1
A getNomecampo() 0 3 1
A setNomecampo() 0 5 1
A getGiorno() 0 3 1
A setId() 0 5 1
A setNometabella() 0 5 1
A setValoreprecedente() 0 5 1
A __sleep() 0 3 1
A getOperatoriId() 0 3 1
A getOperatori() 0 3 1
A setOperatori() 0 5 1
A setIdtabella() 0 5 1
A getId() 0 3 1
A getValoreprecedente() 0 3 1
A setGiorno() 0 5 1
1
<?php
2
3
namespace Cdf\BiCoreBundle\Entity;
4
5
use Doctrine\ORM\Mapping as ORM;
6
7
/**
8
 * Cdf\BiCoreBundle\Storicomodifiche.
9
 *
10
 * @ORM\Entity()
11
 * @ORM\Table(name="Storicomodifiche", indexes={@ORM\Index(name="fk_Storicomodifiche_Operatori1_idx", columns={"operatori_id"})})
12
 * @ORM\InheritanceType("SINGLE_TABLE")
13
 * @ORM\DiscriminatorColumn(name="discr", type="string")
14
 * @ORM\DiscriminatorMap({"base":"BaseStoricomodifiche", "extended":"Storicomodifiche"})
15
 */
16
class BaseStoricomodifiche
17
{
18
    /**
19
     * @ORM\Id
20
     * @ORM\Column(type="integer")
21
     * @ORM\GeneratedValue(strategy="AUTO")
22
     */
23
    protected $id;
24
25
    /**
26
     * @ORM\Column(type="string", length=45)
27
     */
28
    protected $nometabella;
29
30
    /**
31
     * @ORM\Column(type="string", length=45)
32
     */
33
    protected $nomecampo;
34
35
    /**
36
     * @ORM\Column(type="integer")
37
     */
38
    protected $idtabella;
39
40
    /**
41
     * @ORM\Column(type="datetime", nullable=true)
42
     */
43
    protected $giorno;
44
45
    /**
46
     * @ORM\Column(type="text", nullable=true)
47
     */
48
    protected $valoreprecedente;
49
50
    /**
51
     * @ORM\Column(type="integer")
52
     */
53
    protected $operatori_id;
54
55
    /**
56
     * @ORM\ManyToOne(targetEntity="Operatori", inversedBy="storicomodifiches")
57
     * @ORM\JoinColumn(name="operatori_id", referencedColumnName="id", nullable=false)
58
     */
59
    protected $operatori;
60
61 2
    public function __construct()
62
    {
63 2
    }
64
65
    /**
66
     * Set the value of id.
67
     *
68
     * @param int $id
69
     *
70
     * @return \Cdf\BiCoreBundle\Entity\Storicomodifiche
71
     */
72
    public function setId($id)
73
    {
74
        $this->id = $id;
75
76
        return $this;
77
    }
78
79
    /**
80
     * Get the value of id.
81
     *
82
     * @return int
83
     */
84
    public function getId()
85
    {
86
        return $this->id;
87
    }
88
89
    /**
90
     * Set the value of nometabella.
91
     *
92
     * @param string $nometabella
93
     *
94
     * @return \Cdf\BiCoreBundle\Entity\Storicomodifiche
95
     */
96 2
    public function setNometabella($nometabella)
97
    {
98 2
        $this->nometabella = $nometabella;
99
100 2
        return $this;
101
    }
102
103
    /**
104
     * Get the value of nometabella.
105
     *
106
     * @return string
107
     */
108
    public function getNometabella()
109
    {
110
        return $this->nometabella;
111
    }
112
113
    /**
114
     * Set the value of nomecampo.
115
     *
116
     * @param string $nomecampo
117
     *
118
     * @return \Cdf\BiCoreBundle\Entity\Storicomodifiche
119
     */
120 2
    public function setNomecampo($nomecampo)
121
    {
122 2
        $this->nomecampo = $nomecampo;
123
124 2
        return $this;
125
    }
126
127
    /**
128
     * Get the value of nomecampo.
129
     *
130
     * @return string
131
     */
132 2
    public function getNomecampo()
133
    {
134 2
        return $this->nomecampo;
135
    }
136
137
    /**
138
     * Set the value of idtabella.
139
     *
140
     * @param int $idtabella
141
     *
142
     * @return \Cdf\BiCoreBundle\Entity\Storicomodifiche
143
     */
144 2
    public function setIdtabella($idtabella)
145
    {
146 2
        $this->idtabella = $idtabella;
147
148 2
        return $this;
149
    }
150
151
    /**
152
     * Get the value of idtabella.
153
     *
154
     * @return int
155
     */
156
    public function getIdtabella()
157
    {
158
        return $this->idtabella;
159
    }
160
161
    /**
162
     * Set the value of giorno.
163
     *
164
     * @param \DateTime $giorno
165
     *
166
     * @return \Cdf\BiCoreBundle\Entity\Storicomodifiche
167
     */
168 2
    public function setGiorno($giorno)
169
    {
170 2
        $this->giorno = $giorno;
171
172 2
        return $this;
173
    }
174
175
    /**
176
     * Get the value of giorno.
177
     *
178
     * @return \DateTime
179
     */
180 2
    public function getGiorno()
181
    {
182 2
        return $this->giorno;
183
    }
184
185
    /**
186
     * Set the value of valoreprecedente.
187
     *
188
     * @param string $valoreprecedente
189
     *
190
     * @return \Cdf\BiCoreBundle\Entity\Storicomodifiche
191
     */
192 2
    public function setValoreprecedente($valoreprecedente)
193
    {
194 2
        $this->valoreprecedente = $valoreprecedente;
195
196 2
        return $this;
197
    }
198
199
    /**
200
     * Get the value of valoreprecedente.
201
     *
202
     * @return string
203
     */
204 2
    public function getValoreprecedente()
205
    {
206 2
        return $this->valoreprecedente;
207
    }
208
209
    /**
210
     * Set the value of operatori_id.
211
     *
212
     * @param int $operatori_id
213
     *
214
     * @return \Cdf\BiCoreBundle\Entity\Storicomodifiche
215
     */
216
    public function setOperatoriId($operatori_id)
217
    {
218
        $this->operatori_id = $operatori_id;
219
220
        return $this;
221
    }
222
223
    /**
224
     * Get the value of operatori_id.
225
     *
226
     * @return int
227
     */
228
    public function getOperatoriId()
229
    {
230
        return $this->operatori_id;
231
    }
232
233
    /**
234
     * Set Operatori entity (many to one).
235
     *
236
     * @param \Cdf\BiCoreBundle\Entity\Operatori $operatori
237
     *
238
     * @return \Cdf\BiCoreBundle\Entity\Storicomodifiche
239
     */
240 2
    public function setOperatori(Operatori $operatori = null)
241
    {
242 2
        $this->operatori = $operatori;
243
244 2
        return $this;
245
    }
246
247
    /**
248
     * Get Operatori entity (many to one).
249
     *
250
     * @return \Cdf\BiCoreBundle\Entity\Operatori
251
     */
252 2
    public function getOperatori()
253
    {
254 2
        return $this->operatori;
255
    }
256
257
    public function __sleep()
258
    {
259
        return array('id', 'nometabella', 'nomecampo', 'idtabella', 'giorno', 'valoreprecedente', 'operatori_id');
260
    }
261
}
262