Passed
Push — develop ( 2eb13f...360a3e )
by Andrea
22:40 queued 17:58
created

BaseOpzionitabelle   A

Complexity

Total Complexity 12

Size/Duplication

Total Lines 156
Duplicated Lines 0 %

Test Coverage

Coverage 82.76%

Importance

Changes 0
Metric Value
eloc 22
dl 0
loc 156
ccs 24
cts 29
cp 0.8276
rs 10
c 0
b 0
f 0
wmc 12

12 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 2 1
A setDescrizione() 0 5 1
A getValore() 0 3 1
A getId() 0 3 1
A getNometabella() 0 3 1
A getDescrizione() 0 3 1
A setId() 0 5 1
A __sleep() 0 3 1
A getParametro() 0 3 1
A setValore() 0 5 1
A setNometabella() 0 5 1
A setParametro() 0 5 1
1
<?php
2
3
namespace Cdf\BiCoreBundle\Entity;
4
5
use Doctrine\ORM\Mapping as ORM;
6
7
/**
8
 * Cdf\BiCoreBundle\Opzionitabelle.
9
 *
10
 * @ORM\Entity()
11
 * @ORM\Table(name="Opzionitabelle")
12
 * @ORM\InheritanceType("SINGLE_TABLE")
13
 * @ORM\DiscriminatorColumn(name="discr", type="string")
14
 * @ORM\DiscriminatorMap({"base":"BaseOpzionitabelle", "extended":"Opzionitabelle"})
15
 */
16
class BaseOpzionitabelle
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, nullable=true)
27
     */
28
    protected $nometabella;
29
30
    /**
31
     * @ORM\Column(type="string", length=255, nullable=true)
32
     */
33
    protected $descrizione;
34
35
    /**
36
     * @ORM\Column(type="string", length=255, nullable=true)
37
     */
38
    protected $parametro;
39
40
    /**
41
     * @ORM\Column(type="string", length=255, nullable=true)
42
     */
43
    protected $valore;
44
45 3
    public function __construct()
46
    {
47 3
    }
48
49
    /**
50
     * Set the value of id.
51
     *
52
     * @param int $id
53
     *
54
     * @return \Cdf\BiCoreBundle\Entity\Opzionitabelle
55
     */
56
    public function setId($id)
57
    {
58
        $this->id = $id;
59
60
        return $this;
61
    }
62
63
    /**
64
     * Get the value of id.
65
     *
66
     * @return int
67
     */
68 3
    public function getId()
69
    {
70 3
        return $this->id;
71
    }
72
73
    /**
74
     * Set the value of nometabella.
75
     *
76
     * @param string $nometabella
77
     *
78
     * @return \Cdf\BiCoreBundle\Entity\Opzionitabelle
79
     */
80 3
    public function setNometabella($nometabella)
81
    {
82 3
        $this->nometabella = $nometabella;
83
84 3
        return $this;
85
    }
86
87
    /**
88
     * Get the value of nometabella.
89
     *
90
     * @return string
91
     */
92 2
    public function getNometabella()
93
    {
94 2
        return $this->nometabella;
95
    }
96
97
    /**
98
     * Set the value of descrizione.
99
     *
100
     * @param string $descrizione
101
     *
102
     * @return \Cdf\BiCoreBundle\Entity\Opzionitabelle
103
     */
104 2
    public function setDescrizione($descrizione)
105
    {
106 2
        $this->descrizione = $descrizione;
107
108 2
        return $this;
109
    }
110
111
    /**
112
     * Get the value of descrizione.
113
     *
114
     * @return string
115
     */
116 2
    public function getDescrizione()
117
    {
118 2
        return $this->descrizione;
119
    }
120
121
    /**
122
     * Set the value of parametro.
123
     *
124
     * @param string $parametro
125
     *
126
     * @return \Cdf\BiCoreBundle\Entity\Opzionitabelle
127
     */
128 2
    public function setParametro($parametro)
129
    {
130 2
        $this->parametro = $parametro;
131
132 2
        return $this;
133
    }
134
135
    /**
136
     * Get the value of parametro.
137
     *
138
     * @return string
139
     */
140 2
    public function getParametro()
141
    {
142 2
        return $this->parametro;
143
    }
144
145
    /**
146
     * Set the value of valore.
147
     *
148
     * @param string $valore
149
     *
150
     * @return \Cdf\BiCoreBundle\Entity\Opzionitabelle
151
     */
152 2
    public function setValore($valore)
153
    {
154 2
        $this->valore = $valore;
155
156 2
        return $this;
157
    }
158
159
    /**
160
     * Get the value of valore.
161
     *
162
     * @return string
163
     */
164 2
    public function getValore()
165
    {
166 2
        return $this->valore;
167
    }
168
169
    public function __sleep()
170
    {
171
        return array('id', 'nometabella', 'descrizione', 'parametro', 'valore');
172
    }
173
}
174