Completed
Branch 4.1 (fb2034)
by Andrea
04:53
created

BaseMenuapplicazione::__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\Menuapplicazione
9
 *
10
 * @ORM\Entity()
11
 * @ORM\Table(name="Menuapplicazione")
12
 * @ORM\InheritanceType("SINGLE_TABLE")
13
 * @ORM\DiscriminatorColumn(name="discr", type="string")
14
 * @ORM\DiscriminatorMap({"base":"BaseMenuapplicazione", "extended":"Menuapplicazione"})
15
 * @SuppressWarnings(PHPMD)
16
*/
17
class BaseMenuapplicazione
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=255, nullable=true)
28
     */
29
    protected $nome;
30
31
    /**
32
     * @ORM\Column(type="string", length=640, nullable=true)
33
     */
34
    protected $percorso;
35
36
    /**
37
     * @ORM\Column(type="integer", nullable=true)
38
     */
39
    protected $padre;
40
41
    /**
42
     * @ORM\Column(type="integer", nullable=true)
43
     */
44
    protected $ordine;
45
46
    /**
47
     * @ORM\Column(type="boolean", nullable=true)
48
     */
49
    protected $attivo;
50
51
    /**
52
     * @ORM\Column(type="string", length=255, nullable=true)
53
     */
54
    protected $target;
55
56
    /**
57
     * @ORM\Column(type="string", length=45, nullable=true)
58
     */
59
    protected $tag;
60
61
    /**
62
     * @ORM\Column(type="boolean", nullable=true)
63
     */
64
    protected $notifiche;
65
66
    /**
67
     * @ORM\Column(type="boolean", nullable=true)
68
     */
69
    protected $autorizzazionerichiesta;
70
71
    /**
72
     * @ORM\Column(type="string", length=640, nullable=true)
73
     */
74
    protected $percorsonotifiche;
75
76 1
    public function __construct()
77
    {
78 1
    }
79
80
    /**
81
     * Set the value of id.
82
     *
83
     * @param integer $id
84
     * @return \Fi\CoreBundle\Menuapplicazione
0 ignored issues
show
Bug introduced by
The type Fi\CoreBundle\Menuapplicazione 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...
85
     */
86
    public function setId($id)
87
    {
88
        $this->id = $id;
89
90
        return $this;
91
    }
92
93
    /**
94
     * Get the value of id.
95
     *
96
     * @return integer
97
     */
98 1
    public function getId()
99
    {
100 1
        return $this->id;
101
    }
102
103
    /**
104
     * Set the value of nome.
105
     *
106
     * @param string $nome
107
     * @return \Fi\CoreBundle\Menuapplicazione
108
     */
109 1
    public function setNome($nome)
110
    {
111 1
        $this->nome = $nome;
112
113 1
        return $this;
114
    }
115
116
    /**
117
     * Get the value of nome.
118
     *
119
     * @return string
120
     */
121 1
    public function getNome()
122
    {
123 1
        return $this->nome;
124
    }
125
126
    /**
127
     * Set the value of percorso.
128
     *
129
     * @param string $percorso
130
     * @return \Fi\CoreBundle\Menuapplicazione
131
     */
132 1
    public function setPercorso($percorso)
133
    {
134 1
        $this->percorso = $percorso;
135
136 1
        return $this;
137
    }
138
139
    /**
140
     * Get the value of percorso.
141
     *
142
     * @return string
143
     */
144 1
    public function getPercorso()
145
    {
146 1
        return $this->percorso;
147
    }
148
149
    /**
150
     * Set the value of padre.
151
     *
152
     * @param integer $padre
153
     * @return \Fi\CoreBundle\Menuapplicazione
154
     */
155 1
    public function setPadre($padre)
156
    {
157 1
        $this->padre = $padre;
158
159 1
        return $this;
160
    }
161
162
    /**
163
     * Get the value of padre.
164
     *
165
     * @return integer
166
     */
167 1
    public function getPadre()
168
    {
169 1
        return $this->padre;
170
    }
171
172
    /**
173
     * Set the value of ordine.
174
     *
175
     * @param integer $ordine
176
     * @return \Fi\CoreBundle\Menuapplicazione
177
     */
178 1
    public function setOrdine($ordine)
179
    {
180 1
        $this->ordine = $ordine;
181
182 1
        return $this;
183
    }
184
185
    /**
186
     * Get the value of ordine.
187
     *
188
     * @return integer
189
     */
190 1
    public function getOrdine()
191
    {
192 1
        return $this->ordine;
193
    }
194
195
    /**
196
     * Set the value of attivo.
197
     *
198
     * @param boolean $attivo
199
     * @return \Fi\CoreBundle\Menuapplicazione
200
     */
201 1
    public function setAttivo($attivo)
202
    {
203 1
        $this->attivo = $attivo;
204
205 1
        return $this;
206
    }
207
208
    /**
209
     * Get the value of attivo.
210
     *
211
     * @return boolean
212
     */
213 1
    public function getAttivo()
214
    {
215 1
        return $this->attivo;
216
    }
217
218
    /**
219
     * Set the value of target.
220
     *
221
     * @param string $target
222
     * @return \Fi\CoreBundle\Menuapplicazione
223
     */
224
    public function setTarget($target)
225
    {
226
        $this->target = $target;
227
228
        return $this;
229
    }
230
231
    /**
232
     * Get the value of target.
233
     *
234
     * @return string
235
     */
236 1
    public function getTarget()
237
    {
238 1
        return $this->target;
239
    }
240
241
    /**
242
     * Set the value of tag.
243
     *
244
     * @param string $tag
245
     * @return \Fi\CoreBundle\Menuapplicazione
246
     */
247
    public function setTag($tag)
248
    {
249
        $this->tag = $tag;
250
251
        return $this;
252
    }
253
254
    /**
255
     * Get the value of tag.
256
     *
257
     * @return string
258
     */
259 1
    public function getTag()
260
    {
261 1
        return $this->tag;
262
    }
263
264
    /**
265
     * Set the value of notifiche.
266
     *
267
     * @param boolean $notifiche
268
     * @return \Fi\CoreBundle\Menuapplicazione
269
     */
270 1
    public function setNotifiche($notifiche)
271
    {
272 1
        $this->notifiche = $notifiche;
273
274 1
        return $this;
275
    }
276
277
    /**
278
     * Get the value of notifiche.
279
     *
280
     * @return boolean
281
     */
282 1
    public function getNotifiche()
283
    {
284 1
        return $this->notifiche;
285
    }
286
287
    /**
288
     * Set the value of autorizzazionerichiesta.
289
     *
290
     * @param boolean $autorizzazionerichiesta
291
     * @return \Fi\CoreBundle\Menuapplicazione
292
     */
293 1
    public function setAutorizzazionerichiesta($autorizzazionerichiesta)
294
    {
295 1
        $this->autorizzazionerichiesta = $autorizzazionerichiesta;
296
297 1
        return $this;
298
    }
299
300
    /**
301
     * Get the value of autorizzazionerichiesta.
302
     *
303
     * @return boolean
304
     */
305 1
    public function getAutorizzazionerichiesta()
306
    {
307 1
        return $this->autorizzazionerichiesta;
308
    }
309
310
    /**
311
     * Set the value of percorsonotifiche.
312
     *
313
     * @param string $percorsonotifiche
314
     * @return \Fi\CoreBundle\Menuapplicazione
315
     */
316
    public function setPercorsonotifiche($percorsonotifiche)
317
    {
318
        $this->percorsonotifiche = $percorsonotifiche;
319
320
        return $this;
321
    }
322
323
    /**
324
     * Get the value of percorsonotifiche.
325
     *
326
     * @return string
327
     */
328 1
    public function getPercorsonotifiche()
329
    {
330 1
        return $this->percorsonotifiche;
331
    }
332
333
    public function __sleep()
334
    {
335
        return array('id', 'nome', 'percorso', 'padre', 'ordine', 'attivo', 'target', 'tag', 'notifiche', 'autorizzazionerichiesta', 'percorsonotifiche');
336
    }
337
}
338