GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — master ( bca039...62b974 )
by Luis Ramón
03:29
created

Workcenter::setAddress()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 6
rs 9.4285
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
/*
3
  ÁTICA - Aplicación web para la gestión documental de centros educativos
4
5
  Copyright (C) 2015-2016: Luis Ramón López López
6
7
  This program is free software: you can redistribute it and/or modify
8
  it under the terms of the GNU Affero General Public License as published by
9
  the Free Software Foundation, either version 3 of the License, or
10
  (at your option) any later version.
11
12
  This program is distributed in the hope that it will be useful,
13
  but WITHOUT ANY WARRANTY; without even the implied warranty of
14
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15
  GNU Affero General Public License for more details.
16
17
  You should have received a copy of the GNU Affero General Public License
18
  along with this program.  If not, see [http://www.gnu.org/licenses/].
19
*/
20
21
namespace AppBundle\Entity;
22
23
use Doctrine\ORM\Mapping as ORM;
24
25
/**
26
 * @ORM\Entity
27
 */
28
class Workcenter
29
{
30
    /**
31
     * @ORM\Id
32
     * @ORM\Column(type="integer")
33
     * @ORM\GeneratedValue
34
     * @var int
35
     */
36
    protected $id;
37
38
    /**
39
     * @ORM\ManyToOne(targetEntity="Company")
40
     * @ORM\JoinColumn(nullable=false)
41
     */
42
    protected $company;
43
44
    /**
45
     * @ORM\Column(type="string")
46
     * @var string
47
     */
48
    protected $address;
49
50
    /**
51
     * @ORM\Column(type="string")
52
     * @var string
53
     */
54
    protected $city;
55
56
    /**
57
     * @ORM\Column(type="string")
58
     * @var string
59
     */
60
    protected $province;
61
62
    /**
63
     * @ORM\Column(type="string")
64
     * @var string
65
     */
66
    protected $zipCode;
67
68
    /**
69
     * @ORM\Column(type="string", nullable=true)
70
     * @var string
71
     */
72
    protected $phoneNumber;
73
74
    /**
75
     * @ORM\Column(type="string", nullable=true)
76
     * @var string
77
     */
78
    protected $email;
79
80
    /**
81
     * @ORM\ManyToOne(targetEntity="Person")
82
     * @ORM\JoinColumn(nullable=false)
83
     * @var Person
84
     */
85
    protected $manager;
86
87
    /**
88
     * @ORM\OneToMany(targetEntity="Agreement", mappedBy="workcenter")
89
     * @var Agreement[]
90
     */
91
    protected $agreements;
92
93
94
    /**
95
     * Constructor
96
     */
97
    public function __construct()
98
    {
99
        $this->agreements = new \Doctrine\Common\Collections\ArrayCollection();
0 ignored issues
show
Documentation Bug introduced by
It seems like new \Doctrine\Common\Collections\ArrayCollection() of type object<Doctrine\Common\C...ctions\ArrayCollection> is incompatible with the declared type array<integer,object<AppBundle\Entity\Agreement>> of property $agreements.

Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.

Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..

Loading history...
100
    }
101
102
    /**
103
     * Get id
104
     *
105
     * @return integer
106
     */
107
    public function getId()
108
    {
109
        return $this->id;
110
    }
111
112
    /**
113
     * Set company
114
     *
115
     * @param Company $company
116
     *
117
     * @return Workcenter
118
     */
119
    public function setCompany(Company $company)
120
    {
121
        $this->company = $company;
122
123
        return $this;
124
    }
125
126
    /**
127
     * Get company
128
     *
129
     * @return Company
130
     */
131
    public function getCompany()
132
    {
133
        return $this->company;
134
    }
135
136
    /**
137
     * Set address
138
     *
139
     * @param string $address
140
     *
141
     * @return Workcenter
142
     */
143
    public function setAddress($address)
144
    {
145
        $this->address = $address;
146
147
        return $this;
148
    }
149
150
    /**
151
     * Get address
152
     *
153
     * @return string
154
     */
155
    public function getAddress()
156
    {
157
        return $this->address;
158
    }
159
160
    /**
161
     * Set city
162
     *
163
     * @param string $city
164
     *
165
     * @return Workcenter
166
     */
167
    public function setCity($city)
168
    {
169
        $this->city = $city;
170
171
        return $this;
172
    }
173
174
    /**
175
     * Get city
176
     *
177
     * @return string
178
     */
179
    public function getCity()
180
    {
181
        return $this->city;
182
    }
183
184
    /**
185
     * Set province
186
     *
187
     * @param string $province
188
     *
189
     * @return Workcenter
190
     */
191
    public function setProvince($province)
192
    {
193
        $this->province = $province;
194
195
        return $this;
196
    }
197
198
    /**
199
     * Get province
200
     *
201
     * @return string
202
     */
203
    public function getProvince()
204
    {
205
        return $this->province;
206
    }
207
208
    /**
209
     * Set zipCode
210
     *
211
     * @param string $zipCode
212
     *
213
     * @return Workcenter
214
     */
215
    public function setZipCode($zipCode)
216
    {
217
        $this->zipCode = $zipCode;
218
219
        return $this;
220
    }
221
222
    /**
223
     * Get zipCode
224
     *
225
     * @return string
226
     */
227
    public function getZipCode()
228
    {
229
        return $this->zipCode;
230
    }
231
232
    /**
233
     * Set phoneNumber
234
     *
235
     * @param string $phoneNumber
236
     *
237
     * @return Workcenter
238
     */
239
    public function setPhoneNumber($phoneNumber)
240
    {
241
        $this->phoneNumber = $phoneNumber;
242
243
        return $this;
244
    }
245
246
    /**
247
     * Get phoneNumber
248
     *
249
     * @return string
250
     */
251
    public function getPhoneNumber()
252
    {
253
        return $this->phoneNumber;
254
    }
255
256
    /**
257
     * Set email
258
     *
259
     * @param string $email
260
     *
261
     * @return Workcenter
262
     */
263
    public function setEmail($email)
264
    {
265
        $this->email = $email;
266
267
        return $this;
268
    }
269
270
    /**
271
     * Get email
272
     *
273
     * @return string
274
     */
275
    public function getEmail()
276
    {
277
        return $this->email;
278
    }
279
280
    /**
281
     * Set manager
282
     *
283
     * @param Person $manager
284
     *
285
     * @return Workcenter
286
     */
287
    public function setManager(Person $manager)
288
    {
289
        $this->manager = $manager;
290
291
        return $this;
292
    }
293
294
    /**
295
     * Get manager
296
     *
297
     * @return Person
298
     */
299
    public function getManager()
300
    {
301
        return $this->manager;
302
    }
303
304
    /**
305
     * Add agreement
306
     *
307
     * @param Agreement $agreement
308
     *
309
     * @return Workcenter
310
     */
311
    public function addAgreement(Agreement $agreement)
312
    {
313
        $this->agreements[] = $agreement;
314
315
        return $this;
316
    }
317
318
    /**
319
     * Remove agreement
320
     *
321
     * @param Agreement $agreement
322
     */
323
    public function removeAgreement(Agreement $agreement)
324
    {
325
        $this->agreements->removeElement($agreement);
0 ignored issues
show
Bug introduced by
The method removeElement cannot be called on $this->agreements (of type array<integer,object<AppBundle\Entity\Agreement>>).

Methods can only be called on objects. This check looks for methods being called on variables that have been inferred to never be objects.

Loading history...
326
    }
327
328
    /**
329
     * Get agreements
330
     *
331
     * @return \Doctrine\Common\Collections\Collection
332
     */
333
    public function getAgreements()
334
    {
335
        return $this->agreements;
336
    }
337
}
338