Passed
Push — 4.1 ( b9ff83...971190 )
by Andrea
13:16
created

BasePermessi::setRuoliId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 5
ccs 0
cts 3
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
crap 2
1
<?php
2
3
namespace Fi\CoreBundle\Entity;
4
5
use Doctrine\ORM\Mapping as ORM;
6
7
/**
8
 * Fi\CoreBundle\Permessi
9
 *
10
 * @ORM\Entity()
11
 * @ORM\Table(name="Permessi", indexes={@ORM\Index(name="fk_Permessi_Ruoli1_idx", columns={"ruoli_id"}), @ORM\Index(name="fk_Permessi_Operatori1_idx", columns={"operatori_id"})})
12
 * @ORM\InheritanceType("SINGLE_TABLE")
13
 * @ORM\DiscriminatorColumn(name="discr", type="string")
14
 * @ORM\DiscriminatorMap({"base":"BasePermessi", "extended":"Permessi"})
15
 */
16
class BasePermessi
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=255, nullable=true)
27
     */
28
    protected $modulo;
29
30
    /**
31
     * @ORM\Column(type="string", length=45, nullable=true)
32
     */
33
    protected $crud;
34
35
    /**
36
     * @ORM\Column(type="integer", nullable=true)
37
     */
38
    protected $ruoli_id;
39
40
    /**
41
     * @ORM\Column(type="integer", nullable=true)
42
     */
43
    protected $operatori_id;
44
45
    /**
46
     * @ORM\ManyToOne(targetEntity="Ruoli", inversedBy="permessis")
47
     * @ORM\JoinColumn(name="ruoli_id", referencedColumnName="id")
48
     */
49
    protected $ruoli;
50
51
    /**
52
     * @ORM\ManyToOne(targetEntity="Operatori", inversedBy="permessis")
53
     * @ORM\JoinColumn(name="operatori_id", referencedColumnName="id")
54
     */
55
    protected $operatori;
56
57 3
    public function __construct()
58
    {
59 3
    }
60
61
    /**
62
     * Set the value of id.
63
     *
64
     * @param integer $id
65
     * @return \Fi\CoreBundle\Permessi
0 ignored issues
show
Bug introduced by
The type Fi\CoreBundle\Permessi 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...
66
     */
67
    public function setId($id)
68
    {
69
        $this->id = $id;
70
71
        return $this;
72
    }
73
74
    /**
75
     * Get the value of id.
76
     *
77
     * @return integer
78
     */
79 2
    public function getId()
80
    {
81 2
        return $this->id;
82
    }
83
84
    /**
85
     * Set the value of modulo.
86
     *
87
     * @param string $modulo
88
     * @return \Fi\CoreBundle\Permessi
89
     */
90 3
    public function setModulo($modulo)
91
    {
92 3
        $this->modulo = $modulo;
93
94 3
        return $this;
95
    }
96
97
    /**
98
     * Get the value of modulo.
99
     *
100
     * @return string
101
     */
102 2
    public function getModulo()
103
    {
104 2
        return $this->modulo;
105
    }
106
107
    /**
108
     * Set the value of crud.
109
     *
110
     * @param string $crud
111
     * @return \Fi\CoreBundle\Permessi
112
     */
113 2
    public function setCrud($crud)
114
    {
115 2
        $this->crud = $crud;
116
117 2
        return $this;
118
    }
119
120
    /**
121
     * Get the value of crud.
122
     *
123
     * @return string
124
     */
125 3
    public function getCrud()
126
    {
127 3
        return $this->crud;
128
    }
129
130
    /**
131
     * Set the value of ruoli_id.
132
     *
133
     * @param integer $ruoli_id
134
     * @return \Fi\CoreBundle\Permessi
135
     */
136
    public function setRuoliId($ruoli_id)
137
    {
138
        $this->ruoli_id = $ruoli_id;
139
140
        return $this;
141
    }
142
143
    /**
144
     * Get the value of ruoli_id.
145
     *
146
     * @return integer
147
     */
148 1
    public function getRuoliId()
149
    {
150 1
        return $this->ruoli_id;
151
    }
152
153
    /**
154
     * Set the value of operatori_id.
155
     *
156
     * @param integer $operatori_id
157
     * @return \Fi\CoreBundle\Permessi
158
     */
159
    public function setOperatoriId($operatori_id)
160
    {
161
        $this->operatori_id = $operatori_id;
162
163
        return $this;
164
    }
165
166
    /**
167
     * Get the value of operatori_id.
168
     *
169
     * @return integer
170
     */
171 1
    public function getOperatoriId()
172
    {
173 1
        return $this->operatori_id;
174
    }
175
176
    /**
177
     * Set Ruoli entity (many to one).
178
     *
179
     * @param \Fi\CoreBundle\Ruoli $ruoli
0 ignored issues
show
Bug introduced by
The type Fi\CoreBundle\Ruoli 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...
180
     * @return \Fi\CoreBundle\Permessi
181
     */
182 2
    public function setRuoli(Ruoli $ruoli = null)
183
    {
184 2
        $this->ruoli = $ruoli;
185
186 2
        return $this;
187
    }
188
189
    /**
190
     * Get Ruoli entity (many to one).
191
     *
192
     * @return \Fi\CoreBundle\Ruoli
193
     */
194 1
    public function getRuoli()
195
    {
196 1
        return $this->ruoli;
197
    }
198
199
    /**
200
     * Set Operatori entity (many to one).
201
     *
202
     * @param \Fi\CoreBundle\Operatori $operatori
0 ignored issues
show
Bug introduced by
The type Fi\CoreBundle\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...
203
     * @return \Fi\CoreBundle\Permessi
204
     */
205 1
    public function setOperatori(Operatori $operatori = null)
206
    {
207 1
        $this->operatori = $operatori;
208
209 1
        return $this;
210
    }
211
212
    /**
213
     * Get Operatori entity (many to one).
214
     *
215
     * @return \Fi\CoreBundle\Operatori
216
     */
217 1
    public function getOperatori()
218
    {
219 1
        return $this->operatori;
220
    }
221
222
    public function __sleep()
223
    {
224
        return array('id', 'modulo', 'crud', 'ruoli_id', 'operatori_id');
225
    }
226
}
227